From a5ae9c920060b6c278597a5a98a5650cb17bca89 Mon Sep 17 00:00:00 2001 From: dancingmirrors Date: Tue, 7 Jul 2026 16:15:21 -0600 Subject: [PATCH] hasvk: Advertise H.264 video decode. Assisted-by: Claude --- src/intel/vulkan_hasvk/anv_device.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan_hasvk/anv_device.c b/src/intel/vulkan_hasvk/anv_device.c index e0d84dc..e89bcff 100644 --- a/src/intel/vulkan_hasvk/anv_device.c +++ b/src/intel/vulkan_hasvk/anv_device.c @@ -198,6 +198,8 @@ get_device_extensions(const struct anv_physical_device *device, const bool has_syncobj_wait = (device->sync_syncobj_type.features & VK_SYNC_FEATURE_CPU_WAIT) != 0; + const bool video_decode = true; + *ext = (struct vk_device_extension_table) { .KHR_8bit_storage = device->info.ver >= 8, .KHR_16bit_storage = device->info.ver >= 8 && !device->instance->no_16bit, @@ -266,13 +268,13 @@ get_device_extensions(const struct anv_physical_device *device, .KHR_swapchain = true, .KHR_swapchain_mutable_format = true, #endif + .KHR_video_queue = video_decode, + .KHR_video_decode_queue = video_decode, + .KHR_video_decode_h264 = video_decode, .KHR_synchronization2 = true, .KHR_timeline_semaphore = true, .KHR_uniform_buffer_standard_layout = true, .KHR_variable_pointers = true, - .KHR_video_queue = true, - .KHR_video_decode_queue = true, - .KHR_video_decode_h264 = VIDEO_CODEC_H264DEC, .KHR_vulkan_memory_model = true, .KHR_workgroup_memory_explicit_layout = true, .KHR_zero_initialize_workgroup_memory = true,