mesa/src/compiler/spirv
Timur Kristóf da184ddbe4 spirv: Always mark FS layer and viewport index inpus as flat
The spec requires these to be decorated as FLAT,
but some apps forgot to set that,
eg. old DXVK before d12a8e09a855

Let's unconditionally decorate these FS inputs as FLAT
in spirv_to_nir, we can do that for free and prevent those
apps from crashing RADV.

Cc: mesa-stable
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33205>
2025-09-19 14:59:12 +02:00
..
tests all: rename gl_shader_stage to mesa_shader_stage 2025-08-06 10:28:40 +08: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 shader_info: remove gl_subgroup_size enum 2025-09-12 21:05:17 +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 headers and metadata from latest Khronos commit 2025-08-08 22:41:14 +00:00
spirv.h spirv: Update headers and metadata from latest Khronos commit 2025-08-08 22:41:14 +00:00
spirv2nir.c all: rename gl_shader_stage to mesa_shader_stage 2025-08-06 10:28:40 +08:00
spirv_info_gen.py build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
spirv_to_nir.c vtn: skip make-available/visible for shared 2025-09-17 11:29:21 +00:00
vtn_alu.c vtn: use vtn_has_decoration more 2025-09-05 15:58:03 +00: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: add nir_vectorize_cb callback parameter to nir_lower_phis_to_scalar() 2025-07-08 15:33:59 +00:00
vtn_cfg.c vtn: use vtn_has_decoration more 2025-09-05 15:58:03 +00:00
vtn_cmat.c spirv: move cmat store barrier after the store. 2025-08-05 22:28:03 +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 vtn: use vtn_has_decoration more 2025-09-05 15:58:03 +00:00
vtn_opencl.c treewide: use nir_def_as_* 2025-08-01 15:34:24 +00:00
vtn_private.h vtn: use vtn_has_decoration more 2025-09-05 15:58:03 +00:00
vtn_structured_cfg.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +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: Always mark FS layer and viewport index inpus as flat 2025-09-19 14:59:12 +02:00