VAAPI does not work on dedicated AMD GPU when Intel IGP is active
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: tempel.julian, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0
Steps to reproduce:
Display is connected only to RX 480, IGP of 6700k is kept activated in uefi. mesa and libva-mesa-driver are installed.
Enable Webrender and VAAPI decoding via about:config, start Firefox with "MOZ_X11_EGL=1 firefox" and start H.264 playback on any site (Polaris GPU does not support native VP9 decoding).
Actual results:
Software decoding is used instead of VAAPI.
Expected results:
It should have used VAAPI decoding. It works when turning off the IGP in uefi and change nothing else. Once the IGP is activated again, VAAPI decoding stops working again too.
Starting Firefox with "LIBVA_DRIVER_NAME=radeonsi" does not help. There is error verbosity (only with IGP activated):
iris: driver missing
libva error: /usr/lib/dri/radeonsi_drv_video.so init failed
It doesn't seem to matter whether libva-intel-driver is installed or not (and it shouldn't anyway, as only the AMD GPU should be used).
Happens with both Firefox 81.0.1 and recent 83 nightly. recent mesa git-master is used.
Reporter | ||
Comment 1•4 years ago
|
||
This is on Xorg. VAAPI decoding in mpv works without issues on the Polaris GPU with the Intel IGP kept enabled.
Comment 2•4 years ago
|
||
Setting a component for this issue in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.
Comment 3•4 years ago
|
||
The GPU used for WebRender should be used for VAAPI, but there is bug 1622132.
I assume the RX480 is used for OpenGL, but MOZ_WAYLAND_DRM_DEVICE points to /dev/dri/renderD128 by default which seems to be your Intel GPU (this env var also applies to X11 regardless of the name). bug 1588904 is about correct device selection.
libva-intel-driver is the old i965 VAAPI driver.
intel-media-driver is the new iris VAAPI driver, but some users run into bug 1619585 (bug 1595994 and bug 1619585 comment 12 need to be fixed).
- What do you get if you start Firefox with LIBVA_DRIVER_NAME=i965 ? (I assume green video like in bug 1622132.)
- What do you get if you start Firefox with MOZ_WAYLAND_DRM_DEVICE="/dev/dri/renderD129" ? (I would assume VAAPI works with the RX480.)
Reporter | ||
Comment 4•4 years ago
|
||
Thanks, I didn't find the VAAPI device selection bug by search term "vaapi". I think we can close mine as duplicate.
Video shows distortion with LIBVA_DRIVER_NAME=i965. It indeed works with MOZ_WAYLAND_DRM_DEVICE="/dev/dri/renderD129" on the Polaris GPU.
Comment 5•4 years ago
|
||
Perfect! Thanks for reporting the bug! :)
Description
•