From 2a77a46837f637c068dc1720b460f14e36ac182d Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 12 Mar 2024 18:36:14 +0200 Subject: [PATCH] anv: return unsupported for FSR images on Gfx12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Cc: mesa-stable Reviewed-By: Mike Blumenkrantz Reviewed-by: Tapani Pälli Part-of: --- src/intel/vulkan/anv_formats.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index 1fdfa2ed029..72f1fc6ae92 100644 --- a/src/intel/vulkan/anv_formats.c +++ b/src/intel/vulkan/anv_formats.c @@ -1464,6 +1464,10 @@ anv_get_image_format_properties( } } + if ((info->usage & VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR) && + !devinfo->has_coarse_pixel_primitive_and_cb) + goto unsupported; + /* From the bspec section entitled "Surface Layout and Tiling", * Gfx9 has a 256 GB limitation and Gfx11+ has a 16 TB limitation. */