mesa/src/compiler/spirv
Samuel Pitoiset 46aea87a79 spirv: fix OpUntypedVariableKHR with optional data type parameter
This would read OOB and crash because data type is optional per the
SPIRV spec.

Original patch by Faith Ekstrand <faith.ekstrand@collabora.com>.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
(cherry picked from commit 1f8be7bfad)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40979>
2026-04-14 15:27:44 +02:00
..
tests treewide: add & use parent instr helpers 2025-11-12 21:22:13 +00:00
gl_spirv.c all: rename gl_shader_stage to mesa_shader_stage 2025-08-06 10:28:40 +08: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 mesa: stop using inc_mesa in most places that have nothing to do with GL 2025-08-06 20:35:26 +00:00
nir_spirv.h spirv: Remove view_index_is_input 2025-12-03 22:52:29 +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-08-08 22:41:14 +00:00
spirv.core.grammar.json spirv: Update the JSON and headers 2025-11-14 19:06:28 +01:00
spirv.h spirv: Update the JSON and headers 2025-11-14 19:06:28 +01:00
spirv2nir.c nir: rename nir_copy_prop -> nir_opt_copy_prop 2025-11-15 02:16:38 +00:00
spirv_info_gen.py build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
spirv_internal_exts.h spirv: Add internal f2f16 opcodes 2026-01-10 11:34:07 +01:00
spirv_to_nir.c spirv: Fix spec constant to handle Select for non-native floats 2026-03-11 23:21:10 +01:00
vtn_alu.c vtn: Fix vtn_mediump_upconvert_value() with transposed matrices 2026-03-17 18:59:23 +01:00
vtn_amd.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
vtn_bindgen2.c nir/lower_printf: fix missing singleton add 2025-11-25 14:18:42 +00:00
vtn_cfg.c nir: move exact bit to nir_fp_math_control 2026-01-07 09:40:57 +00:00
vtn_cmat.c spirv: Refactor ALU opcode translation to take bit sizes 2026-03-11 23:21:10 +01: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 vtn: Fix vtn_mediump_upconvert_value() with transposed matrices 2026-03-17 18:59:23 +01:00
vtn_opencl.c vtn/opencl: flush denorms for cbrt() 2026-02-11 14:54:48 +00:00
vtn_private.h vtn: Fix vtn_mediump_upconvert_value() with transposed matrices 2026-03-17 18:59:23 +01:00
vtn_structured_cfg.c util/dynarray: infer type in append 2025-10-24 18:32:07 +00:00
vtn_subgroup.c spirv: ensure ballot find_lsb/find_msb/bit_count have 32bit result 2025-09-04 14:03:58 +00:00
vtn_variables.c spirv: fix OpUntypedVariableKHR with optional data type parameter 2026-04-14 15:27:44 +02:00