mesa/src/compiler
Alyssa Rosenzweig 4b81cb6206
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
nir/opt_generate_bfi: avoid trivial instructions
With the pass order shuffling, code like `(x & 0xf) + (x & 0xfffffff0)` gets
optimized to bitfield_select(0xF, x, x). But it would be much better to optimize
simply to x. nir_opt_algebraic would do that for us but we run this pass too
late for algebraic to save us from ourselves, so be smarter.

Observed on dEQP-GLES31.functional.compute.basic.image_atomic_op_local_size_8
with Jay, this saves an instruction there.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40956>
2026-04-16 13:54:41 +00:00
..
clc Remove mesa-sha1.h 2026-03-23 07:03:27 +00:00
glsl nir/opt_varyings_bulk: add data parameter to optimize callback 2026-04-03 08:18:08 +02:00
isaspec isaspec: Use %g format for float display to ensure round-trip fidelity 2026-03-04 22:42:27 +00:00
libcl libcl_vk: Add VkCopyMemoryIndirectCommandKHR 2026-02-13 20:53:47 +00:00
nir nir/opt_generate_bfi: avoid trivial instructions 2026-04-16 13:54:41 +00:00
rust nir: add nvidias shared memory non unform address shift 2026-02-11 03:41:23 +01:00
spirv spirv: map float control2 to fine grained nir flags instead of exact 2026-04-12 17:10:27 +00:00
builtin_types.py compiler: add float8 glsl types 2025-06-23 07:59:24 +00:00
builtin_types_c.py
builtin_types_h.py compiler: Generate files with newline at end 2025-06-24 14:01:04 +00:00
glsl_types.c compiler: Add FP8 types to GLSL type decoder 2025-12-19 00:09:53 +00:00
glsl_types.h spirv: Fix spec constant to handle Select for non-native floats 2026-03-04 22:04:45 +00:00
list.h nir: remove unused stuff from list.h 2025-07-31 20:23:04 +00:00
meson.build nir, glsl: Add support for softfloat32 2025-11-14 19:31:17 +00:00
shader_enums.c nir: add back color0/1 system values and VARYING_SLOT_PARAM_GEN_AMD 2026-04-15 18:12:07 +00:00
shader_enums.h nir: add back color0/1 system values and VARYING_SLOT_PARAM_GEN_AMD 2026-04-15 18:12:07 +00:00
shader_info.h nir: Add tex sources for descriptor heaps 2026-03-30 06:51:22 +00:00