radv/video: fix physical device format property count.

This was returning bad values

Fixes: db62c38091 ("radv: add vcn h265 decode.")
Reviewed-by: Lynne <dev@lynne.ee>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23227>
(cherry picked from commit b9d208bd1f)
This commit is contained in:
Dave Airlie 2023-05-26 05:12:10 +10:00 committed by Eric Engestrom
parent 5fa1f9115d
commit 1fe7896f47
2 changed files with 2 additions and 2 deletions

View file

@ -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"
},

View file

@ -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 *)