mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 05:28:05 +02:00
anv: support h265 encoding
Signed-off-by: Hyunjun Ko <zzoon@igalia.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810>
This commit is contained in:
parent
eefa886b01
commit
78ff100a52
1 changed files with 3 additions and 1 deletions
|
|
@ -171,6 +171,7 @@ get_device_extensions(const struct anv_physical_device *device,
|
|||
.KHR_video_decode_h265 = VIDEO_CODEC_H265DEC && device->video_decode_enabled,
|
||||
.KHR_video_encode_queue = device->video_encode_enabled,
|
||||
.KHR_video_encode_h264 = VIDEO_CODEC_H264ENC && device->video_encode_enabled,
|
||||
.KHR_video_encode_h265 = device->info.ver >= 12 && VIDEO_CODEC_H265ENC && device->video_encode_enabled,
|
||||
.KHR_vulkan_memory_model = true,
|
||||
.KHR_workgroup_memory_explicit_layout = true,
|
||||
.KHR_zero_initialize_workgroup_memory = true,
|
||||
|
|
@ -2620,7 +2621,8 @@ void anv_GetPhysicalDeviceQueueFamilyProperties2(
|
|||
}
|
||||
|
||||
if (queue_family->queueFlags & VK_QUEUE_VIDEO_ENCODE_BIT_KHR) {
|
||||
prop->videoCodecOperations |= VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR;
|
||||
prop->videoCodecOperations |= VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR |
|
||||
VK_VIDEO_CODEC_OPERATION_ENCODE_H265_BIT_KHR;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue