mesa/src/compiler
Emma Anholt d01aae2fb1 nir: Add a shader bisect tool.
When you're trying to figure out what shader some NIR pass broke, use
nir_shader_bisect_select() to decide between NIR pass behaviors, and then
nir_shader_bisect.py will help you automatically bisect down to which
source_blake3 is at fault.  Once it's identified, it prints you a C call
you can use for selecting that shader specifically, which you can use for
continuing on in your debugging.

On a test I was looking at, this took 10 steps to bisect 134 shaders down
to the source_blake3 of the NIR shader in question.

This idea is heavily lifted from Job Noorman's ir3_shader_bisect.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37468>
2025-10-09 17:56:30 +00:00
..
clc clc: Fix createDiagnostics for LLVM-22 2025-10-03 18:44:30 +00:00
glsl glsl: fix gl_ViewID_OVR type to uint 2025-10-08 16:58:52 +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: Add a shader bisect tool. 2025-10-09 17:56:30 +00:00
rust nak: Move dataflow to compiler crate 2025-09-13 07:30:50 +00:00
spirv nir,vtn: add shader_info::assume_no_data_races 2025-10-07 17:41:30 +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 glsl: handle PerPrimitiveEXT qualifier 2025-09-22 02:19:37 +00:00
glsl_types.h glsl: handle PerPrimitiveEXT qualifier 2025-09-22 02:19:37 +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 compiler: auto-stage file ext for SPIR-V capture 2025-09-22 19:06:07 +00:00
shader_enums.h nir: add ACCESS_ATOMIC 2025-10-07 17:41:30 +00:00
shader_info.h nir,vtn: add shader_info::assume_no_data_races 2025-10-07 17:41:30 +00:00