mesa/src/intel/compiler
Paulo Zanoni 7eab94d542 intel/nir: fix sparse shadow comparison for BRW
While Jay overwrites sparse_tex->op with the newer opcodes that only
return red and the sparse stuff, BRW keeps using the original opcode
of the cloned instruction, so it can't change def->num_components.

This was not previously detectable since we did not have sparse
enabled for depth/stencil on Anv for a while. A patch to re-enable
that was proposed a while ago (MR !37423), never merged, but then a
recent attempt to try to merge it (by me) detected this regression.
Let's fix the regression first, then we can finally re-enable sparse
depth/stencil support in Anv, hopefully.

Fixes: 7468261d3d ("intel/nir: Make intel_nir_lower_sparse work for either brw or jay")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37423>
2026-05-07 23:47:51 +00:00
..
brw brw: Limit SIMD width based on NIR rather than first backend compile 2026-05-07 08:29:40 +00:00
elk intel/elk: Remove dead TXL_LZ/TXF_LZ opcodes 2026-04-17 15:13:00 +00:00
jay iris: Implement force_dual_color_blend_by_location via NIR 2026-05-07 08:29:40 +00:00
brw_device_sha1_gen_c.py Rename sha1_* and sha_* names to blake3_* 2026-03-23 07:03:28 +00:00
brw_list.h intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_gfx_ver_enum.h intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_nir.c intel/compiler: Use nir_split_conversions() 2025-04-07 17:45:21 -05:00
intel_nir.h intel/nir: Make intel_nir_lower_sparse work for either brw or jay 2026-04-10 18:21:21 +00:00
intel_nir_blockify_uniform_loads.c intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_nir_clamp_image_1d_2d_array_sizes.c intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_nir_clamp_per_vertex_loads.c intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_nir_lower_non_uniform_barycentric_at_sample.c intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_nir_lower_non_uniform_resource_intel.c nir: rename nir_src_parent_instr to nir_src_use_instr 2026-05-06 17:09:22 +00:00
intel_nir_lower_printf.c intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_nir_lower_shading_rate_output.c intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_nir_lower_sparse.c intel/nir: fix sparse shadow comparison for BRW 2026-05-07 23:47:51 +00:00
intel_nir_opt_peephole_ffma.c nir: rename nir_src_parent_instr to nir_src_use_instr 2026-05-06 17:09:22 +00:00
intel_nir_opt_peephole_imul32x16.c intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_nir_tcs_workarounds.c nir: add and use block predecessor helpers 2026-04-08 15:06:32 +00:00
intel_prim.h intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_shader_enums.h anv: add apply_layout support for device bindable shaders/pipelines 2026-05-06 09:49:44 +00:00
meson.build intel: add Jay 2026-04-10 18:21:21 +00:00