From 2832e9fe7700e0b865b924e5e63b46fbd196655a 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: (cherry picked from commit 2a77a46837f637c068dc1720b460f14e36ac182d) --- .pick_status.json | 2 +- src/intel/vulkan/anv_formats.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 5bd74b97c21..0d39c0e4c3b 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -464,7 +464,7 @@ "description": "anv: return unsupported for FSR images on Gfx12.0", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index 8d652e0c8f8..5cc97ec8aa0 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. */