mesa/src/compiler
Marek Olšák 4263b49778 ac/nir: remove ngg_scratch LDS ABI, allocate it in the lowering pass
This is a cleanup.

Old gs LDS layout: [es outputs][gs outputs][scratch]
Old nogs LDS layout: [xfb/cull][scratch]

New gs LDS layout: [es outputs][scratch|gs outputs]
New nogs LDS layout: [scratch|xfb/cull]

The LDS scratch is moved to the beginning of the preceding buffer in LDS,
while the addresses in that LDS buffer are offset by the scratch size.
It effectively merges the LDS scratch with the preceding buffer in LDS.
Thanks to that, we no longer need the ngg_scratch ABI and the offset
in a user SGPR.

The lowering passes now return the LDS scratch size, which is used
by the drivers to determine the final LDS size.

The ngg_lds_layout SGPR is now unused without GS in RADV.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35352>
2025-07-02 20:27:41 +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 ac/nir: remove ngg_scratch LDS ABI, allocate it in the lowering pass 2025-07-02 20:27:41 +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