From d7d0ccdc51fa4114d77e1c14f934fc9dafbd630d Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 13 Jun 2023 17:50:07 +0200 Subject: [PATCH] radv/video: reject non-8bit H264 Reviewed-by: Dave Airlie Part-of: --- src/amd/vulkan/radv_video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/vulkan/radv_video.c b/src/amd/vulkan/radv_video.c index 1875fc7..5f3ad6b 100644 --- a/src/amd/vulkan/radv_video.c +++ b/src/amd/vulkan/radv_video.c @@ -449,6 +449,9 @@ radv_GetPhysicalDeviceVideoCapabilitiesKHR(VkPhysicalDevice physicalDevice, h264_profile->stdProfileIdc != STD_VIDEO_H264_PROFILE_IDC_HIGH) return VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR; + if (pVideoProfile->lumaBitDepth != VK_VIDEO_COMPONENT_BIT_DEPTH_8_BIT_KHR) + return VK_ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR; + pCapabilities->maxDpbSlots = NUM_H264_REFS; pCapabilities->maxActiveReferencePictures = NUM_H264_REFS; -- 2.7.4