From 1896b48f4ebe146c2ce00fc2e0d46113ab8613ff Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Wed, 3 May 2023 16:21:04 +0200 Subject: [PATCH] anv: use the workaround framework for WA 14013111325 Signed-off-by: Rohan Garg Reviewed-by: Nanley Chery Part-of: --- src/intel/vulkan/anv_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 2caa994..a2b87e0 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -3936,7 +3936,7 @@ anv_can_sample_mcs_with_clear(const struct intel_device_info * const devinfo, * See HSD 1707282275, wa_14013111325. Due to the use of * format-reinterpretation, a simplified workaround is implemented. */ - if (devinfo->ver >= 12 && + if (intel_needs_workaround(devinfo, 14013111325) && isl_format_get_layout(anv_surf->isl.format)->bpb <= 16) { return false; } -- 2.7.4