mesa/src/intel/compiler
Lionel Landwerlin 487586fefa anv: implement inline parameter promotion from push constants
Push constants on bindless stages of Gfx12.5+ don't get the data
delivered in the registers automatically. Instead the shader needs to
load the data with SEND messages.

Those stages do get a single InlineParameter 32B block of data
delivered into the EU. We can use that to promote some of the push
constant data that has to be pulled otherwise.

The driver will try to promote all push constant data (app + driver
values) if it can, if it can't it'll try to promote only the driver
values (usually a shader will only use a few driver values). If even
the drivers values won't fit, give up and don't use the inline
parameter at all.

LNL internal fossil-db:

Totals from 315738 (20.08% of 1572649) affected shaders:
Instrs: 155053691 -> 154920901 (-0.09%); split: -0.09%, +0.00%
CodeSize: 2578204272 -> 2574991568 (-0.12%); split: -0.15%, +0.02%
Send messages: 8235628 -> 8184485 (-0.62%); split: -0.62%, +0.00%
Cycle count: 43911938816 -> 43901857748 (-0.02%); split: -0.05%, +0.03%
Spill count: 481329 -> 473185 (-1.69%); split: -1.82%, +0.13%
Fill count: 405617 -> 399243 (-1.57%); split: -1.86%, +0.28%
Max live registers: 34309395 -> 34309300 (-0.00%); split: -0.00%, +0.00%
Max dispatch width: 8298224 -> 8299168 (+0.01%)
Non SSA regs after NIR: 18492887 -> 17631285 (-4.66%); split: -4.73%, +0.08%

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39405>
2026-02-25 10:44:09 +00:00
..
brw anv: implement inline parameter promotion from push constants 2026-02-25 10:44:09 +00:00
elk elk/cmod: Don't propagate from CMP to ADD if there is a write between 2026-02-19 21:28:55 +00:00
brw_device_sha1_gen_c.py intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +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 brw: add support for separate tessellation shader compilation 2025-09-05 07:46:17 +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 intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +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/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_nir_opt_peephole_ffma.c intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +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 intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_prim.h intel/compiler: Use SPDX annotations 2026-01-24 20:37:31 +00:00
intel_shader_enums.h brw: Drop BRW_VARYING_SLOT_PAD and brw_varying_slot enum 2026-02-16 15:15:35 -08:00
meson.build brw: Move into a new src/intel/compiler/brw subdirectory 2025-10-09 07:01:47 +00:00