mesa/src/intel
Paulo Zanoni 6d748f5b2c anv/sparse: reject all sample flags that non-sparse doesn't support
We call anv_get_image_format_properties() from
anv_GetPhysicalDeviceSparseImageFormatProperties2() because we want to
reject all images that we don't support for the non-sparse case. That
function does not take sample counts as its input, it outputs a list
of possible sample counts. In this patch we check the sample counts it
outputs: if what the user is querying isn't even supported by
non-sparse, reject it right away.

That saves us from having to code in anv_sparse_image_check_support()
cases that are coded elsewhere. Examples include: 1D images and
compressed formats.

This change affects a number of dEQP tests, including:
  - dEQP-VK.api.info.sparse_image_format_properties2.1d.optimal.r4g4b4a4_unorm_pack16
  - dEQP-VK.api.info.sparse_image_format_properties2.2d.optimal.bc2_srgb_block

Without this patch, and with sparse multi-sampling enabled, this would
hit the following assertion:
  anv_formats.c:1903: anv_GetPhysicalDeviceSparseImageFormatProperties2: Assertion `false' failed.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27306>
2024-05-15 08:00:15 +00:00
..
blorp intel/blorp: remove unused blorp batch flag 2024-04-10 05:38:24 +00:00
ci ci: update failures list with angle for jsl, tgl 2024-05-15 04:45:55 +00:00
common intel: move debug identifier out of libintel_dev 2024-05-11 01:52:01 +00:00
compiler intel/brw: fix subgroup size of geometry stages for lnl+ 2024-05-14 23:13:37 +00:00
decoder intel/decoder: Add intel_print_group_custom_spacing() 2024-04-24 17:07:50 +00:00
dev intel/brw: Hide register pressure information in dumps 2024-05-11 02:17:56 +00:00
ds intel/ds: Nuke ralloc_ctx and ralloc_cfg 2024-05-07 21:44:34 +00:00
genxml intel/genxml/xe2: Update definition of INTERFACE_DESCRIPTOR_DATA 2024-04-03 20:21:04 +00:00
isl isl: add ISL_TILING_64_XE2 to isl_tiling_to_name() 2024-05-15 08:00:15 +00:00
nullhw-layer docs: replace references to the deprecated VK_INSTANCE_LAYERS with the new VK_LOADER_LAYERS_ENABLE 2024-04-02 18:08:52 +00:00
perf intel/perf: Add function to open perf stream 2024-05-07 21:44:34 +00:00
shaders intel: Build float64 shader only for Vulkan 2024-04-26 14:08:32 +00:00
tools intel: move debug identifier out of libintel_dev 2024-05-11 01:52:01 +00:00
vulkan anv/sparse: reject all sample flags that non-sparse doesn't support 2024-05-15 08:00:15 +00:00
vulkan_hasvk intel: move debug identifier out of libintel_dev 2024-05-11 01:52:01 +00:00
meson.build intel: Only build shaders with anv and iris 2024-02-21 20:53:36 +00:00