mesa/src/compiler/spirv
Samuel Pitoiset 78ea304a06 spirv: only consider IO variables when adjusting patch locations for TES
With TES, the primitive ID is an input variable but it's considered a
sysval by SPIRV->NIR. Though, its value is greater than
VARYING_SLOT_VAR0 which means its location was adjusted by mistake.

This fixes compiling a tessellation evaluation shader in debug build
with Enshrouded.

Fixes: dfbc03fa88 ("spirv: Fix locations for per-patch varyings")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27413>
2024-02-21 10:36:07 +00:00
..
tests nir: Rename scoped_barrier -> barrier 2023-08-01 23:18:29 +00:00
gl_spirv.c mesa/spirv: Provide more specific error message for glSpecializeShader() 2023-05-22 15:26:40 +00:00
GLSL.ext.AMD.h spirv: Update headers and grammer JSON 2023-08-18 16:57:22 +00:00
GLSL.std.450.h
meson.build spirv: add missing build dependency 2023-12-11 21:47:37 +00:00
nir_spirv.h radv,vtn,driconf: Add and use radv_rt_ssbo_non_uniform workaround for Crysis 2/3 Remastered 2023-12-12 21:16:39 +00:00
OpenCL.std.h spirv: Update the OpenCL.std.h header 2019-06-04 12:12:51 -07:00
spir-v.xml spirv: Update headers and metadata to SPIR-V 1.6, revision 1 2021-12-17 16:37:14 -08:00
spirv.core.grammar.json spirv: Update headers and grammar JSON 2024-01-30 22:51:52 +00:00
spirv.h spirv: Update headers and grammar JSON 2024-01-30 22:51:52 +00:00
spirv2nir.c spirv: Let spirv2nir find out the shader to use 2023-10-23 22:42:45 +00:00
spirv_info.h spirv: vtn_fail with a nice message on unsupported rounding modes 2020-09-25 01:43:28 +00:00
spirv_info_c.py util,vulkan,mesa,compiler: Generate source files with utf8 encoding from mako template 2023-12-07 12:41:07 +00:00
spirv_to_nir.c spirv: implement SPV_KHR_quad_control 2024-02-09 05:32:35 +00:00
vtn_alu.c vtn: Remove transpose(m0)*m1 fast path 2024-01-07 22:14:36 +00:00
vtn_amd.c nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
vtn_cfg.c spirv: Use linear_alloc for parsing-only data 2024-01-02 16:07:06 +00:00
vtn_cmat.c treewide: Replace the include of nir_types.h with glsl_types.h 2023-12-30 15:08:11 +00:00
vtn_gather_types_c.py util,vulkan,mesa,compiler: Generate source files with utf8 encoding from mako template 2023-12-07 12:41:07 +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 nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
vtn_opencl.c compiler/spirv: vtn_add_printf_string support for handling OpBitcast 2024-01-17 02:59:57 +00:00
vtn_private.h spirv: Use linear_alloc for parsing-only data 2024-01-02 16:07:06 +00:00
vtn_structured_cfg.c spirv: Use linear_alloc for parsing-only data 2024-01-02 16:07:06 +00:00
vtn_subgroup.c spirv: implement SPV_KHR_quad_control 2024-02-09 05:32:35 +00:00
vtn_variables.c spirv: only consider IO variables when adjusting patch locations for TES 2024-02-21 10:36:07 +00:00