mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 10:58:03 +03:00
hasvk: Advertise H.264 video decode.
Assisted-by: Claude
This commit is contained in:
1 parent
bbdb233abe
commit
a5ae9c9200
1 file changed
+5
-3
@@ -198,6 +198,8 @@ get_device_extensions(const struct anv_physical_device *device,
|
|||||||
const bool has_syncobj_wait =
|
const bool has_syncobj_wait =
|
||||||
(device->sync_syncobj_type.features & VK_SYNC_FEATURE_CPU_WAIT) != 0;
|
(device->sync_syncobj_type.features & VK_SYNC_FEATURE_CPU_WAIT) != 0;
|
||||||
|
|
||||||
|
const bool video_decode = true;
|
||||||
|
|
||||||
*ext = (struct vk_device_extension_table) {
|
*ext = (struct vk_device_extension_table) {
|
||||||
.KHR_8bit_storage = device->info.ver >= 8,
|
.KHR_8bit_storage = device->info.ver >= 8,
|
||||||
.KHR_16bit_storage = device->info.ver >= 8 && !device->instance->no_16bit,
|
.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 = true,
|
||||||
.KHR_swapchain_mutable_format = true,
|
.KHR_swapchain_mutable_format = true,
|
||||||
#endif
|
#endif
|
||||||
|
.KHR_video_queue = video_decode,
|
||||||
|
.KHR_video_decode_queue = video_decode,
|
||||||
|
.KHR_video_decode_h264 = video_decode,
|
||||||
.KHR_synchronization2 = true,
|
.KHR_synchronization2 = true,
|
||||||
.KHR_timeline_semaphore = true,
|
.KHR_timeline_semaphore = true,
|
||||||
.KHR_uniform_buffer_standard_layout = true,
|
.KHR_uniform_buffer_standard_layout = true,
|
||||||
.KHR_variable_pointers = 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_vulkan_memory_model = true,
|
||||||
.KHR_workgroup_memory_explicit_layout = true,
|
.KHR_workgroup_memory_explicit_layout = true,
|
||||||
.KHR_zero_initialize_workgroup_memory = true,
|
.KHR_zero_initialize_workgroup_memory = true,
|
||||||
|
|||||||
Reference in new issue
Block a user