mesa/src/compiler
Alyssa Rosenzweig b992703477 nir/lower_system_values: optimize global ID
for drivers where we need to lower a base_workgroup_id but not global IDs.
rather than lowering the whole global ID to stick the base workgroup ID in
there, just add the workgroup offset to the final thread position.

Elden ring fossils:

Totals from 52 (1.62% of 3206) affected shaders:
Instrs: 48355 -> 48233 (-0.25%); split: -0.31%, +0.06%
CodeSize: 331912 -> 331148 (-0.23%); split: -0.28%, +0.05%
ALU: 30853 -> 30674 (-0.58%); split: -0.70%, +0.12%
FSCIB: 30853 -> 30674 (-0.58%); split: -0.70%, +0.12%
IC: 9054 -> 8958 (-1.06%)
GPRs: 4184 -> 4216 (+0.76%)
Uniforms: 6703 -> 6677 (-0.39%); split: -1.61%, +1.22%

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35909>
2025-07-03 16:41:51 +00:00
..
clc clc: add support for cl_ext_image_unorm_int_2_101010 2025-06-30 18:04:59 +00:00
glsl treewide: use nir_break_if with named if 2025-06-30 14:51:54 -04:00
isaspec meson: do not compile libisaspec unless used 2025-03-25 08:32:47 +00:00
libcl libcl: Add more UINT_MAX variants 2025-06-20 10:11:52 +00:00
nir nir/lower_system_values: optimize global ID 2025-07-03 16:41:51 +00:00
rust compiler/rust/bitset: BitSetStream takes Key type 2025-06-09 21:49:29 +00:00
spirv nir: Support printing cmat constants 2025-07-02 16:48:51 +00:00
builtin_types.py compiler: add float8 glsl types 2025-06-23 07:59:24 +00:00
builtin_types_c.py util,vulkan,mesa,compiler: Generate source files with utf8 encoding from mako template 2023-12-07 12:41:07 +00:00
builtin_types_h.py compiler: Generate files with newline at end 2025-06-24 14:01:04 +00:00
glsl_types.c compiler: add float8 glsl types 2025-06-23 07:59:24 +00:00
glsl_types.h compiler: add float8 glsl types 2025-06-23 07:59:24 +00:00
meson.build nak: Move bitset to compiler crate 2024-08-07 21:08:18 +00:00
shader_enums.c nir: Add SYSTEM_VALUE_FRAG_COORD_Z/W. 2025-06-18 23:11:36 +00:00
shader_enums.h nir: Add SYSTEM_VALUE_FRAG_COORD_Z/W. 2025-06-18 23:11:36 +00:00
shader_info.h nir: add shader_info::prev_stage_has_xfb 2025-06-12 19:35:37 +00:00