From 1fe7896f47ee98cf4f6b9e21e79441517703ab1f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 26 May 2023 05:12:10 +1000 Subject: [PATCH] radv/video: fix physical device format property count. This was returning bad values Fixes: db62c38091a3 ("radv: add vcn h265 decode.") Reviewed-by: Lynne Part-of: (cherry picked from commit b9d208bd1f3427fef1b212b3d830484052589c98) --- .pick_status.json | 2 +- src/amd/vulkan/radv_video.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 07240310af9..a819b9b6a33 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1624,7 +1624,7 @@ "description": "radv/video: fix physical device format property count.", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "db62c38091a3b244b1d720a6aa47bf1d1855db55" }, diff --git a/src/amd/vulkan/radv_video.c b/src/amd/vulkan/radv_video.c index 93b4049e9ea..9d7018b0230 100644 --- a/src/amd/vulkan/radv_video.c +++ b/src/amd/vulkan/radv_video.c @@ -399,7 +399,7 @@ radv_GetPhysicalDeviceVideoFormatPropertiesKHR(VkPhysicalDevice physicalDevice, (VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR | VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR)) return VK_ERROR_FORMAT_NOT_SUPPORTED; - *pVideoFormatPropertyCount = 1; + *pVideoFormatPropertyCount = 0; bool need_10bit = false; const struct VkVideoProfileListInfoKHR *prof_list = (struct VkVideoProfileListInfoKHR *)