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

Author: Chris Spencer <[email protected]>
Date:   Sat Aug 12 14:00:14 2023 +0100

anv/video: use correct enum value for max level IDC

Signed-off-by: Chris Spencer <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24649>

---

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

diff --git a/src/intel/vulkan/anv_video.c b/src/intel/vulkan/anv_video.c
index 9c1c6779fe1..faf55e3f857 100644
--- a/src/intel/vulkan/anv_video.c
+++ b/src/intel/vulkan/anv_video.c
@@ -149,7 +149,7 @@ anv_GetPhysicalDeviceVideoCapabilitiesKHR(VkPhysicalDevice 
physicalDevice,
 
       ext->fieldOffsetGranularity.x = 0;
       ext->fieldOffsetGranularity.y = 0;
-      ext->maxLevelIdc = 51;
+      ext->maxLevelIdc = STD_VIDEO_H264_LEVEL_IDC_5_1;
       strcpy(pCapabilities->stdHeaderVersion.extensionName, 
VK_STD_VULKAN_VIDEO_CODEC_H264_DECODE_EXTENSION_NAME);
       pCapabilities->stdHeaderVersion.specVersion = 
VK_STD_VULKAN_VIDEO_CODEC_H264_DECODE_SPEC_VERSION;
       break;

Reply via email to