Module: Mesa
Branch: main
Commit: b9d208bd1f3427fef1b212b3d830484052589c98
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9d208bd1f3427fef1b212b3d830484052589c98

Author: Dave Airlie <[email protected]>
Date:   Fri May 26 05:12:10 2023 +1000

radv/video: fix physical device format property count.

This was returning bad values

Fixes: db62c38091a3 ("radv: add vcn h265 decode.")
Reviewed-by: Lynne <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23227>

---

 src/amd/vulkan/radv_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_video.c b/src/amd/vulkan/radv_video.c
index 393d7f7eca1..9050ef13df9 100644
--- a/src/amd/vulkan/radv_video.c
+++ b/src/amd/vulkan/radv_video.c
@@ -476,7 +476,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 *)

Reply via email to