intel / media-driver

Intel Graphics Media Driver to support hardware decode, encode and video processing.
https://github.com/intel/media-driver/wiki
Other
939 stars 337 forks source link

[Bug]: ENABLE_XE_KMD not active by default. #1783

Closed fmc000 closed 3 months ago

fmc000 commented 3 months ago

Which component impacted?

Build

Is it regression? Good in old configuration?

None

What happened?

Activating the "xe" kernel module and using the latest Mesa that have this driver enabled breaks hardware video acceleration. 3D and vulkan apps work just fine.

What's the usage scenario when you are seeing the problem?

Playback

What impacted?

vainfo:

Trying display: wayland
libva error: /usr/lib/dri/iHD_drv_video.so init failed
vaInitialize failed with error code 18 (invalid parameter),exit

cvlc:

VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
[00005bd3e58f5340] dummy interface: using the dummy interface module...
libva error: /usr/lib/dri/iHD_drv_video.so init failed
[00007f3878001ec0] glconv_vaapi_x11 gl error: vaInitialize: invalid parameter
libva error: /usr/lib/dri/iHD_drv_video.so init failed
[00007f3878001ec0] glconv_vaapi_drm gl error: vaInitialize: invalid parameter
Xlib:  extension "DRI2" missing on display ":1".
libva error: vaGetDriverNames() failed with operation failed
[00007f3878001ec0] glconv_vaapi_drm gl error: vaInitialize: operation failed

Debug Information

Please check https://bbs.archlinux.org/viewtopic.php?pid=2158940

Building with -DENABLE_XE_KMD=ON fixes the problem for me

Do you want to contribute a patch to fix the issue?

None

Jexu commented 3 months ago

It has been enabled by default from commit dbcf5ef421b24c9cebdcce41a96093e63a0088aa. Just found it has a typo that doesn't re-name the macro in cmake file.

XinfengZhang commented 3 months ago

@Jexu , suppose you need add such code in cmake option (ENABLE_XE_KMD "Enable Xe KMD header files" ON)