mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 06:50:11 +01:00
anv: enable video decode extensions.
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20782>
This commit is contained in:
parent
76e8d015d8
commit
633efa7af7
1 changed files with 10 additions and 0 deletions
|
|
@ -272,6 +272,9 @@ get_device_extensions(const struct anv_physical_device *device,
|
||||||
.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,
|
||||||
|
|
@ -2806,6 +2809,13 @@ void anv_GetPhysicalDeviceQueueFamilyProperties2(
|
||||||
prop->queryResultStatusSupport = VK_TRUE;
|
prop->queryResultStatusSupport = VK_TRUE;
|
||||||
break;
|
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:
|
default:
|
||||||
anv_debug_ignored_stype(ext->sType);
|
anv_debug_ignored_stype(ext->sType);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue