hasvk: Advertise H.264 video decode.

Assisted-by: Claude
This commit is contained in:
dancingmirrors authored and elwrcl committed 2026-07-21 21:37:26 +03:00
1 parent bbdb233abe
commit a5ae9c9200
1 file changed
+5 -3
+5 -3
View File
@@ -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,