elFarto / nvidia-vaapi-driver

A VA-API implemention using NVIDIA's NVDEC
Other
1.15k stars 53 forks source link

widget.dmabuf.force-enabled = true no longer required. #305

Open TsunamiMommy opened 1 month ago

TsunamiMommy commented 1 month ago

Hi there. I would like to report that in recent firefox versions and with the nvidia 550 and up drivers widget.dmabuf.force-enabled = true is no longer required for hardware video decoding and enabling it will cause lots of graphical corruption and glitching on 3D web applications. This is with all other required parameters enabled. I just thought that I would let you know. You can test this to comfirm that this is the case for your hardware. I currently have an RTX 4080 running Cinnamon on X11.

Tiagoquix commented 3 weeks ago

Hi, do you have any source from this apart from your experience? I haven't noticed any graphical corruption so far.

TsunamiMommy commented 3 weeks ago

It is an issue exclusive to Nvidia and EGL with widget.dmabuff enabled. I couldn't track down an official reason as to why it happens but the corruption and glitching is mostly related to bad buffer updates with certain web apps and the firefox built in PDF reader. Essentially to trigger the bug I had Desmos, several PDF pages open, and youtube at the same time. It would take a bit of alt-tabbing but what would eventually happen was that the PDF pages were displayed in an incorrect order and even the pages themselves wouldn't be from the same PDF. Desmos would stop updating the graphical contents of the app (so moving graphs around was impossible as it wouldn't update the image to represent any transformations or movements on the graphs). I did extensive testing and it was widget.dmabuff.force=true that was causing the issue. It turns out that it wasn't required to enable hardware video decoding with vaapi on my system. So the obvious recommendation was to simply disable it. I'm not sure about wayland because my curreent setup can't use hardware acceleration due to firefox being incompatible with explicit sync atm. My current setup is Cinnamon (X11) on Mint 21.3, Nvidia 555.42.02, and 6.6.30-rt30-x64v3-xanmod1. Hopefully that answers your question.

Tiagoquix commented 3 weeks ago

Many thanks for the information. I agree; with your explanation it seems weird that this option is causing problems.

Let's wait for an answer from the repository mantainer. I would like to hear what he has to say about this too.

elFarto commented 3 weeks ago

Looks like it's still needed on my setup (550 driver), but there does seem to be some activity on the issue indicating that they might be reverting the block.

ManuLinares commented 2 weeks ago

I've disabled widget.dmabuff.force, seems to work fine. I've had some issues with pdfs on Firefox, didn't know could be related.

Archlinux linux 6.9.7.arch1-1 libva-nvidia-driver-git 0.0.12.r11.gf3205bd-1 nvidia-dkms 555.58-2 (GeForce RTX 3070)