You are not logged in.

#1 2024-03-21 18:20:19

fmc000
Member
Registered: 2020-05-12
Posts: 49

[SOLVED] New Mesa packages in Extra and hardware video decoding

I posted a similar thread in the [Testing] forum with no success, now I try here as the Mesa packages landed in the "Extra" repository.

In short, the new Mesa packages support the latest Intel "xe" kernel module and so I decided to give them a try. This is what I was able to verify so far:

  • KDE Plasma 6 starts and runs perfectly;

  • Vulkan detects correctly the new module and all the tests I ran so far complete successfully;

  • intel_gpu_top segfaults;

  • Hardware video acceleration does not work (libva cannot load the iHD driver, probably because it does not recognise the kernel module);

I tried to replace the intel-video-driver (and its prerequisites) with that -git versions from the AUR but nothing changed. For reference, my laptop has a Iris XE integrated GPU on TigerLake chipset.

sudo intel_gpu_top
Failed to detect engines! (No such file or directory)
(Kernel 4.16 or newer is required for i915 PMU support.)
Segmentation fault
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 Videos/Foo_Fighters-Lollapalooza_Chile_2022-Full_Show.webm 
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

I'm hoping for suggestions. Thanks in advance for reading.

Last edited by fmc000 (2024-03-23 05:17:03)


Linux user since 1996. Currently running Arch on an I7 11th gen laptop with root on zfs.

Offline

#2 2024-03-21 19:00:12

progandy
Member
Registered: 2012-05-17
Posts: 5,202

Re: [SOLVED] New Mesa packages in Extra and hardware video decoding

For intel_gpu_top you could try the git version as well: https://aur.archlinux.org/packages/intel-gpu-tools-git

For intel-media driver, the build config looks broken: https://github.com/intel/media-driver/c … e63a0088aa
I guess you can try to replace ENABLE_NEW_KMD with ENABLE_XE_KMD in that file before building the -git package or try to add -DENABLE_XE_KMD=ON to the cmake command


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2024-03-22 19:17:46

fmc000
Member
Registered: 2020-05-12
Posts: 49

Re: [SOLVED] New Mesa packages in Extra and hardware video decoding

progandy wrote:

For intel_gpu_top you could try the git version as well: https://aur.archlinux.org/packages/intel-gpu-tools-git

For intel-media driver, the build config looks broken: https://github.com/intel/media-driver/c … e63a0088aa
I guess you can try to replace ENABLE_NEW_KMD with ENABLE_XE_KMD in that file before building the -git package or try to add -DENABLE_XE_KMD=ON to the cmake command

Amazing suggestion! After adding DENABLE_XE_KMD=ON to the cmake command in the PKGBUILD the git package works. Now both vainfo and cvlc show that hardware acceleration is enabled!! I haven't tried the intel-cpu-tools git as I couldn't build the package due to meson errors I frankly don't understand.

I definitely think that -DENABLE_XE_KMD=ON should be added to the package.

Last edited by fmc000 (2024-03-22 19:18:42)


Linux user since 1996. Currently running Arch on an I7 11th gen laptop with root on zfs.

Offline

#4 2024-03-22 19:46:52

progandy
Member
Registered: 2012-05-17
Posts: 5,202

Re: [SOLVED] New Mesa packages in Extra and hardware video decoding

You can also file a bug report for the upstream repository, intel seems to have forgotten that one line during the rename of the build option.

Please mark the thread with [SOLVED] by editing the title of the first post if your problem is solved.

Last edited by progandy (2024-03-22 19:47:08)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2024-03-23 05:28:18

fmc000
Member
Registered: 2020-05-12
Posts: 49

Re: [SOLVED] New Mesa packages in Extra and hardware video decoding

progandy wrote:

You can also file a bug report for the upstream repository, intel seems to have forgotten that one line during the rename of the build option.

Please mark the thread with [SOLVED] by editing the title of the first post if your problem is solved.

Both done - https://github.com/intel/media-driver/issues/1783


Linux user since 1996. Currently running Arch on an I7 11th gen laptop with root on zfs.

Offline

#6 2024-03-26 07:46:22

fmc000
Member
Registered: 2020-05-12
Posts: 49

Re: [SOLVED] New Mesa packages in Extra and hardware video decoding

My bug report was closed as Intel devs this morning enabled XE by default in the driver. I suppose that Arch will get it when the next release is posted.


Linux user since 1996. Currently running Arch on an I7 11th gen laptop with root on zfs.

Offline

Board footer

Powered by FluxBB