anv: Adds a workaround for HEVC decoding on some old platforms.
authorHyunjun Ko <zzoon@igalia.com>
Wed, 12 Jul 2023 05:07:23 +0000 (14:07 +0900)
committerHyunjun Ko <zzoon@igalia.com>
Wed, 12 Jul 2023 06:34:28 +0000 (15:34 +0900)
commit0c778ec3c8ea98699d5419588ae50aed801aae6a
tree76d34f78bc146f1e9f7a5e0a2f34482cb65c1077
parentad980dc699ef59d68716039e661c9230d6652769
anv: Adds a workaround for HEVC decoding on some old platforms.

HEVC support on Gfx9 is only available on VCS0. So limit the number of video queues
to the first VCS engine instance.

We should be able to query HEVC support from the kernel using the engine query uAPI,
but this appears to be broken : https://gitlab.freedesktop.org/drm/intel/-/issues/8832

When this bug is fixed we should be able to check HEVC support to determine the
correct number of queues.

Closes: mesa/mesa#9172, mesa/mesa#9314
Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24065>
src/intel/vulkan/anv_device.c