FS#76724 - [mesa] >= 22.3: add vulkan support for older Intel GPUs via new vulkan-drivers option

Attached to Project: Arch Linux
Opened by Siegfried Metz (NiceGuy) - Saturday, 03 December 2022, 00:14 GMT
Last edited by Laurent Carlier (lordheavy) - Sunday, 04 December 2022, 10:24 GMT
Task Type Feature Request
Category Packages: Testing
Status Closed
Assigned To Laurent Carlier (lordheavy)
Felix Yan (felixonmars)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Mesa 22.3 split off [1] vulkan support for older Intel GPUs like Ivy Bridge into an additional driver called intel hasvk [2]. Please add support for it too.

It is as simple as adding "intel_hasvk" [2] to the '-D vulkan-drivers=' array line in the PKGBUILD, patch attached.

Short explanation:
The vulkan intel_hasvk driver was split off from ANV so that upstream (mostly Intel) could focus on newer features and they dropped support for older generations of intel GPUs before the final 22.3 release happened within ANV. In order to use vulkan on Ivy Bridge for instance, intel_hasvk has to be enabled in mesa.


[1]: intel: split vulkan driver between gfx7/8 and above: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18208/commits

[2]: https://gitlab.freedesktop.org/mesa/mesa/-/blob/22.3/meson_options.txt#L188


Additional info:
* mesa-22.3.0
* Get Vulkan support with older Intel GPUs

Steps to reproduce:
Use vulkaninfo, which displays an ERROR message: failed to detect any valid GPUs in the current config
Try to use vulkan, not working until explicitly enabled with intel_hasvk for older Intel GPUs, but still supported with mesa-22.3.
This task depends upon

Closed by  Laurent Carlier (lordheavy)
Sunday, 04 December 2022, 10:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  mesa 22.3.0-5
Comment by Siegfried Metz (NiceGuy) - Saturday, 03 December 2022, 00:26 GMT
Also a few minor tweaks are necessary in the package_vulkan-intel() function, so that the new libvulkan_intel_hasvk.so and intel_hasvk_icd.x86_64.json file gets packaged in the right places.

_install fakeinstall/usr/share/vulkan/icd.d/intel_hasvk_icd.x86_64.json
_install fakeinstall/usr/lib/libvulkan_intel_hasvk.so
Comment by Toolybird (Toolybird) - Saturday, 03 December 2022, 00:59 GMT
Dupe  FS#76725 

Loading...