mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 10:58:03 +03:00
hasvk: enable video decode extensions
This commit is contained in:
1 parent
3a06bb4fc2
commit
bbdb233abe
1 file changed
+10
@@ -270,6 +270,9 @@ get_device_extensions(const struct anv_physical_device *device,
|
||||
.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,
|
||||
@@ -2105,6 +2108,13 @@ void anv_GetPhysicalDeviceQueueFamilyProperties2(
|
||||
prop->queryResultStatusSupport = VK_TRUE;
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_QUEUE_FAMILY_VIDEO_PROPERTIES_KHR: {
|
||||
VkQueueFamilyVideoPropertiesKHR *prop =
|
||||
(VkQueueFamilyVideoPropertiesKHR *)ext;
|
||||
if (queue_family->queueFlags & VK_QUEUE_VIDEO_DECODE_BIT_KHR)
|
||||
prop->videoCodecOperations = VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
vk_debug_ignored_stype(ext->sType);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user