From d0e6809ee5e0b68140313cab20422fd2ea861afb Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Tue, 4 Jul 2023 15:42:41 +0900 Subject: [PATCH] anv/video: fix to support HEVC 10bit on some of 9th gens. From Broxton and Kabylake, it started supporting HEVC 10-bit decoding. Fixes: 649e12c8973 ("anv_video: reject decoding of unsupported profiles and formats") Signed-off-by: Hyunjun Ko Acked-by: Lionel Landwerlin Part-of: --- 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 656cca42b65..9c1c6779fe1 100644 --- a/src/intel/vulkan/anv_video.c +++ b/src/intel/vulkan/anv_video.c @@ -172,7 +172,7 @@ anv_GetPhysicalDeviceVideoCapabilitiesKHR(VkPhysicalDevice physicalDevice, /* Skylake only supports the main profile */ if (h265_profile->stdProfileIdc != STD_VIDEO_H265_PROFILE_IDC_MAIN && h265_profile->stdProfileIdc != STD_VIDEO_H265_PROFILE_IDC_MAIN_STILL_PICTURE && - pdevice->info.ver <= 9) + pdevice->info.platform <= INTEL_PLATFORM_SKL) return VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR; /* Gfx10 and under don't support the range extension profile */