mesa/src
Francisco Jerez 39b3a83ebf iris/gfx12.5+: Keep HIZ_CCS aux usage while sampling from resolved depth surfaces.
This works around graphics corruption seen on MTL and DG2 platforms
when sampling from a HIZ-CCS depth surface that was previously fast
cleared and resolved for sampling.  Apparently full resolves no longer
guarantee that the CCS surface ends up in a pass-through state due to
the behavior of the L3 cache in presence of compressible data.  In
order to work around the problem this makes sure that we use a
CCS-enabled AUX mode for depth textures if the base surface has a CCS
control surface, even if we are instructed to use ISL_AUX_USAGE_NONE.

This appears to fix the corruption without the need to add extra L3
flushes after resolves (as was done in the Vulkan driver, see
5178ad761c).

v2: Use ISL_AUX_USAGE_HIZ_CCS_WT instead of ISL_AUX_USAGE_HIZ_CCS
    usage to represent the requirements of sampling from a depth
    surface (Nanley).
v3: Add some comments, remove redundant check, disallow creation of
    ISL_AUX_USAGE_NONE surface state for depth sampler views since the
    hardware is buggy (Nanley).
v4: Preserve use of ISL_AUX_STATE_CLEAR when fast-clearing a surface
    (Nanley).
v5: Set ISL_AUX_STATE_COMPRESSED_NO_CLEAR state after clearing a HiZ
    CCS WT resource on xe2+ (Nanley).

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31139>
2026-01-27 08:52:14 +00:00
..
amd amd/common/virtio: use device fd to init sync provider 2026-01-27 08:24:35 +00:00
android_stub android_stub: fix missing prototypes issues 2025-12-02 20:03:02 +00:00
asahi asahi/clc: call nir_opt_remove_phis after nir_opt_loop 2026-01-26 12:02:49 +00:00
broadcom broadcom/ci: remove duplicate entries 2026-01-23 10:44:30 +00:00
c11 c11/threads: fix build on c23 2025-11-10 07:01:50 +10:00
compiler nir,spirv: Add support for SPV_QCOM_image_processing. 2026-01-27 02:00:40 +00:00
drm-shim drm-shim: handle DRM_CAP_ADDFB2_MODIFIERS 2025-11-24 12:34:08 +00:00
egl egl/surfaceless,device: Support RGB[A]16_UNORM formats for pbuffers. 2026-01-21 12:29:03 +00:00
etnaviv etnaviv: hwdb: Add BLT_64BPP_MASKED_CLEAR_FIX cap 2026-01-27 00:57:26 +00:00
freedreno tu: Implement VK_QCOM_image_processing. 2026-01-27 02:00:40 +00:00
gallium iris/gfx12.5+: Keep HIZ_CCS aux usage while sampling from resolved depth surfaces. 2026-01-27 08:52:14 +00:00
gbm gbm: Make documentation for gbm_bo_map more explicit 2025-12-29 10:05:38 +00:00
getopt
gfxstream gfxstream: fix build after vk.xml update 2026-01-26 18:25:51 +00:00
glx driconf: add a way to override GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 2025-12-17 23:35:24 +00:00
gtest
imagination pvr/ci: document last night's flakes 2026-01-23 19:37:20 +00:00
imgui imgui: Silence build warnings for imgui 2025-09-16 06:16:19 +00:00
intel intel/isl/gfx12.5: Alow hierarchial depth buffer write through for multi sampled surfaces 2026-01-27 08:52:12 +00:00
kosmickrisp kk: Use pipeline_layout.dynamic_descriptor_offset 2026-01-22 17:04:19 +00:00
loader loader: fix UB in wayland helper code. 2026-01-03 07:56:38 +00:00
mesa gallium: Add pipe cap for masked clears and support stencil masking 2026-01-27 00:57:26 +00:00
microsoft vk: descriptors: sort bindings along with flags 2026-01-20 15:55:47 +00:00
nouveau nvk: Ignore meta ops in occlusion queries 2026-01-26 18:41:54 +00:00
panfrost panfrost/clc: call nir_opt_remove_phis after nir_opt_loop 2026-01-26 12:02:49 +00:00
poly panvk/csf: implement VK_EXT_primitives_generated_query primitive restart 2026-01-21 09:03:34 +00:00
tool pps/meson: minor refactor for pps_deps 2025-11-08 18:39:00 -08:00
util radv: fix applying radv_ssbo_non_uniform=true for Crysis 2/3 remastered 2026-01-27 06:54:10 +00:00
virtio venus: refactor Android ANB tracking to avoid confusions with WSI 2026-01-21 23:15:42 +00:00
vulkan lavapipe: add NV_cooperative_matrix2 reductions support 2026-01-26 22:39:40 +00:00
x11 treewide: strip unneeded inc_gallium inc_gallium_aux 2025-11-13 22:01:43 +00:00
.clang-format util: Add sparse bitset data structure 2025-11-06 21:34:33 +00:00
meson.build kk: Add KosmicKrisp 2025-10-20 17:46:38 +00:00