mesa/src/compiler/spirv
Daniel Schürmann 2c51a8870d
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
nir: add nir_vectorize_cb callback parameter to nir_lower_phis_to_scalar()
Similar to nir_lower_alu_width(), the callback can return the
desired number of components for a phi, or 0 for no lowering.

The previous behavior of nir_lower_phis_to_scalar() with lower_all=true
can be elicited via nir_lower_all_phis_to_scalar() while the previous
behavior with lower_all=false now corresponds to nir_lower_phis_to_scalar()
with NULL callback.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35783>
2025-07-08 15:33:59 +00:00
..
tests nir: Support printing cmat constants 2025-07-02 16:48:51 +00:00
gl_spirv.c mesa: Use the new spirv_capabilities struct 2024-05-09 01:14:22 +00:00
GLSL.ext.AMD.h spirv: Update headers and grammer JSON 2023-08-18 16:57:22 +00:00
GLSL.std.450.h spirv: bump headers 2025-06-06 14:38:17 +00:00
meson.build nir: Support printing cmat constants 2025-07-02 16:48:51 +00:00
nir_spirv.h spirv: move workarounds to an inner struct in spirv_to_nir_options 2025-03-05 19:56:50 +00:00
NonSemanticShaderDebugInfo100.h spirv: bump headers 2025-06-06 14:38:17 +00:00
OpenCL.std.h spirv: bump headers 2025-06-06 14:38:17 +00:00
spir-v.xml spirv: Update headers and metadata from latest Khronos commit 2025-03-25 02:29:26 +00:00
spirv.core.grammar.json spirv: bump headers 2025-06-06 14:38:17 +00:00
spirv.h spirv: bump headers 2025-06-06 14:38:17 +00:00
spirv2nir.c spirv: Get rid of the old caps struct 2024-05-09 01:14:23 +00:00
spirv_info_gen.py spirv: Update SPIR-V grammar to use aliases 2024-10-10 02:48:00 +00:00
spirv_to_nir.c spirv: Move the shader_call_data workaround above nir_validate_shader 2025-06-26 06:30:44 +00:00
vtn_alu.c spirv: support float8 conversions 2025-06-23 07:59:24 +00:00
vtn_amd.c nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
vtn_bindgen2.c nir: add nir_vectorize_cb callback parameter to nir_lower_phis_to_scalar() 2025-07-08 15:33:59 +00:00
vtn_cfg.c vtn: (Silently) handle FunctionParameterAttributeNo{Capture,Write} 2025-05-28 01:08:20 +00:00
vtn_cmat.c spirv: implement CooperativeMatrixConversionsNV 2025-06-24 07:14:34 +00:00
vtn_debug.c vtn: Add a debug flag to dump SPIR-V assembly 2024-08-28 21:52:59 +00:00
vtn_gather_types_c.py spirv: OpAsmTargetINTEL is untyped 2025-03-08 19:54:19 +00:00
vtn_generator_ids_h.py util,vulkan,mesa,compiler: Generate source files with utf8 encoding from mako template 2023-12-07 12:41:07 +00:00
vtn_glsl450.c spirv: clamp/sign-extend non 32bit ldexp exponents 2025-04-03 12:35:59 +00:00
vtn_opencl.c vtn/opencl: support fp16 builtins 2025-06-05 13:17:27 +00:00
vtn_private.h spirv: vtn_has_decoration helper 2025-06-23 07:59:24 +00:00
vtn_structured_cfg.c spirv: move workarounds to an inner struct in spirv_to_nir_options 2025-03-05 19:56:50 +00:00
vtn_subgroup.c vtn: Handle SPV_KHR_uniform_group_instructions 2025-05-28 01:08:20 +00:00
vtn_variables.c compiler: add float8 glsl types 2025-06-23 07:59:24 +00:00