mesa/src/compiler
Job Noorman e78bd88a06
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
nir/opt_offsets: add callback to set need_nuw per intrinsic
Wether need_nuw is used is currently decided in two different ways:
- globally through the allow_offset_wrap option;
- per intrinsic but hard-coded in opt_offsets.

Make this more flexible by creating a callback that is called per
intrinsic. This will allow backends to decide, on a per-intrinsic basis,
whether need_nuw is needed.

Note that the main use case for ir3 is to add support for opt_offsets
for global memory accesses. Other intrinsics don't need need_nuw but
global memory accesses do.

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37114>
2025-09-01 11:25:07 +00:00
..
clc util: Refactoring util_dl_get_path_from_proc out of clc/clc_helpers.cpp 2025-08-07 21:15:13 +00:00
glsl mesa: Fix support for GL_EXT_shader_clock 2025-08-29 11:09:04 +00:00
isaspec meson: do not compile libisaspec unless used 2025-03-25 08:32:47 +00:00
libcl libcl: avoid calling UNREACHABLE(str) macro without arguments 2025-08-04 23:15:18 +02:00
nir nir/opt_offsets: add callback to set need_nuw per intrinsic 2025-09-01 11:25:07 +00:00
rust nir: add nir_intrinsic_cmat_load_shared_nv 2025-08-28 16:09:07 +02:00
spirv spirv: Fix RT raygen hit attribute validation error 2025-08-13 10:20:35 +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/types: handle BFLOAT16 when decoding blob 2025-08-20 04:12:00 +00:00
glsl_types.h build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
list.h nir: remove unused stuff from list.h 2025-07-31 20:23:04 +00:00
meson.build nir: move list.h outside the glsl directory 2025-07-31 20:23:02 +00:00
shader_enums.c nir,spirv: Add support for SPV_ARM_core_builtins 2025-08-07 11:46:33 +02:00
shader_enums.h nir: add ACCESS_SKIP_HELPERS 2025-08-12 08:56:37 +00:00
shader_info.h all: rename gl_shader_stage to mesa_shader_stage 2025-08-06 10:28:40 +08:00