mesa/src/compiler
Timothy Arceri f041e05876 glsl: fix gl_{Clip,Cull}Distance error messages
The error message in the linker that checked
gl_MaxCombinedClipAndCullDistances would never be issued because the
compiler was already doing the check. I think the compiler might have
been done this way in the original commit d656736b as the linker
only sets the size when the clip/cull outputs are written so the
piglit test for this wouldn't have been triggered as it does not
write to the outputs.

Here we move the error to the compiler and fix things up so the
correct messages are triggered.

Fixes: d656736bbf ("glsl: Add arb_cull_distance support (v3)")

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31471>
(cherry picked from commit 1c58f513c4)
2024-10-03 11:50:57 +02:00
..
clc clc: find opencl headers from the installed llvm/clang location 2024-09-23 17:44:16 +02:00
glsl glsl: fix gl_{Clip,Cull}Distance error messages 2024-10-03 11:50:57 +02:00
isaspec build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
nir nir/opt_vectorize_io: fix skipped output vectorization if inputs were vectorized 2024-10-03 11:50:56 +02:00
spirv vtn: ignore volatile on functions for now 2024-08-27 08:56:05 +02:00
builtin_types.py compiler/types: Use Python to generate code for builtin types 2023-09-16 15:17:01 +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 util,vulkan,mesa,compiler: Generate source files with utf8 encoding from mako template 2023-12-07 12:41:07 +00:00
glsl_types.c glsl_types: derive ht 2024-03-12 19:41:50 +00:00
glsl_types.h compiler/types: Fix glsl_dvec*_type() helpers 2024-03-04 15:22:32 +00:00
meson.build format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
shader_enums.c nir: add SYSTEM_VALUE_BASE_WORKGROUP_ID 2024-04-24 20:18:48 +00:00
shader_enums.h nir: Add FLOAT_CONTROLS_.*_PRESERVE 2024-07-15 19:28:59 +00:00
shader_info.h nir/shader_info: remove uses_demote 2024-06-17 19:37:16 +00:00