mesa/src/compiler
Nicolai Hähnle 15cae12804 glsl/linker: fix output variable overlap check
Prevent an overflow caused by too many output variables. To limit the
scope of the issue, write to the assigned array only for the non-ES
fragment shader path, which is the only place where it's needed.

Since the function will bail with an error when output variables with
overlapping components are found, (max # of FS outputs) * 4 is an upper
limit to the space we need.

Found by address sanitizer.

Fixes dEQP-GLES3.functional.attribute_location.bind_aliasing.*

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2017-09-20 15:35:57 +02:00
..
glsl glsl/linker: fix output variable overlap check 2017-09-20 15:35:57 +02:00
nir nir: put compact into bitfields in nir_variable_data 2017-09-07 11:00:04 +10:00
spirv nir/spirv: handle if's with same label in both branches 2017-09-12 07:01:40 +02:00
.gitignore
Android.glsl.gen.mk Android: clean-up trailing '\' in make variables 2017-03-22 17:52:06 +00:00
Android.glsl.mk
Android.mk
Android.nir.gen.mk Android: fix spirv_info.c generation 2017-07-21 08:48:45 +03:00
Android.nir.mk android: fix libmesa_nir build 2017-07-21 08:47:56 +03:00
builtin_type_macros.h
glsl_types.cpp st/mesa: get rid of st_glsl_types 2017-07-31 14:55:30 +02:00
glsl_types.h glsl: add get_internal_ifc_packing() type helper 2017-08-22 11:29:27 +10:00
Makefile.am compiler: Add $(WNO_OVERRIDE_INIT) to AM_CFLAGS 2017-08-29 15:20:57 -07:00
Makefile.glsl.am glsl: automake: export abs_builddir for the tests 2017-03-28 15:31:22 +01:00
Makefile.nir.am spirv: Generate spirv_info.c 2017-07-18 09:43:12 -07:00
Makefile.sources util: move string_to_uint_map to glsl 2017-08-29 13:40:44 +01:00
nir_types.cpp nir: add nir_lower_samplers_as_deref pass 2017-07-31 14:55:29 +02:00
nir_types.h nir: add nir_lower_samplers_as_deref pass 2017-07-31 14:55:29 +02:00
SConscript
SConscript.glsl
SConscript.nir
shader_enums.c compiler: Add a system value and varying for ViewIndex 2017-05-03 11:25:46 -07:00
shader_enums.h compiler: move glsl_interface_packing enum to shader_enums.h 2017-07-26 10:39:52 +10:00
shader_info.h compiler: move pointers to the start of shader_info 2017-08-24 11:18:48 +10:00