Repository navigation
Keep hybrid VA-API on the render GPU - #9138
yashranaway wants to merge 2 commits into
Conversation
|
Live hardware verification on an AMD + NVIDIA hybrid laptop:
Verification on this branch:
This supplies the live AMD-hybrid verification requested in the PR description. |
|
Thanks for checking the detector on real AMD/NVIDIA hardware and confirming the VA-API workaround, I have marked this ready for review. |
mvaleed
left a comment
There was a problem hiding this comment.
Ended up on this issue after facing it on my Lenovo legion 5. Appreciate the fix!
|
Confirmed on another AMD + NVIDIA hybrid laptop:
VA-API H.264 decoding was tested successfully on both render nodes, so the |
|
Automated duplication check: this pull request looks similar to #7851, which covers the same LIBVA-only NVIDIA gating on hybrid-GPU systems. I keep that one open and close this one to consolidate review. If you feel this is the wrong decision, please open the PR again with a note on the difference. |
<<<< AI wording below >>>>
Problem
On hybrid Intel or AMD plus NVIDIA laptops, the session-wide
LIBVA_DRIVER_NAME=nvidiaoverride sends video decoding to the discrete GPU even when the integrated GPU owns rendering. This can freeze hardware-accelerated video and unnecessarily wake the discrete GPU.Fixes #9096.
Fix
Add a cached sysfs detector for NVIDIA-only display configurations and set
LIBVA_DRIVER_NAME=nvidiaonly when every display controller is NVIDIA. Hybrid systems now keep automatic VA-API driver selection while retaining the existing NVIDIA backend and GLX settings.Verification
./test/shell.d/hw-nvidia-test.shbash test/shell.d/bin-style-test.shbash -n bin/omarchy-hw-nvidia-only test/shell.d/hw-nvidia-test.shgit diff --check