summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2024-03-12 18:36:14 +0200
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2024-03-13 08:52:24 +0200
commit2a77a46837f637c068dc1720b460f14e36ac182d (patch)
tree03d578abe14253ea8468161b69e968ce0e97bb81
parente324fbbe68df870dede5a7b4efbd6528dd041de6 (diff)
anv: return unsupported for FSR images on Gfx12.0
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: mesa-stable Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28131>
-rw-r--r--src/intel/vulkan/anv_formats.c4
1 files changed, 4 insertions, 0 deletions
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.
*/