mesa/src/compiler
Juan A. Suarez Romero 9f45f09b86 glsl: use array element type to validate assignment
When comparing an vec3 and a vec4 array, scalar type is the same for
both (float). Instead use the array element type to compare (that is,
vec3 vs vec4).

Fixes
spec@glsl-1.20@compiler@invalid-vec4-array-to-vec3-array-conversion.vert
piglit test.

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37783>
2025-10-10 09:19:55 +00:00
..
clc clc: Fix createDiagnostics for LLVM-22 2025-10-03 18:44:30 +00:00
glsl glsl: use array element type to validate assignment 2025-10-10 09:19:55 +00:00
isaspec meson: do not compile libisaspec unless used 2025-03-25 08:32:47 +00:00
libcl libcl: avoid calling UNREACHABLE(str) macro without arguments 2025-08-04 23:15:18 +02:00
nir nir/lower_alu: use Knuth's Algorithm M for [iu]mul_high 2025-10-10 05:31:17 +00:00
rust nak: Move dataflow to compiler crate 2025-09-13 07:30:50 +00:00
spirv vtn_bindgen2: use anonymous namespace to avoid name collisions 2025-10-09 19:18:58 +00:00
builtin_types.py compiler: add float8 glsl types 2025-06-23 07:59:24 +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 compiler: Generate files with newline at end 2025-06-24 14:01:04 +00:00
glsl_types.c glsl: handle PerPrimitiveEXT qualifier 2025-09-22 02:19:37 +00:00
glsl_types.h glsl: handle PerPrimitiveEXT qualifier 2025-09-22 02:19:37 +00:00
list.h nir: remove unused stuff from list.h 2025-07-31 20:23:04 +00:00
meson.build nir: move list.h outside the glsl directory 2025-07-31 20:23:02 +00:00
shader_enums.c compiler: auto-stage file ext for SPIR-V capture 2025-09-22 19:06:07 +00:00
shader_enums.h nir: add ACCESS_ATOMIC 2025-10-07 17:41:30 +00:00
shader_info.h nir,vtn: add shader_info::assume_no_data_races 2025-10-07 17:41:30 +00:00