mesa/src
Nicolai Hähnle 46cfefc5be 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>
(cherry picked from commit 15cae12804)

Squashed with commit:

glsl/linker: properly fix output variable overlap check

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102904
Fixes: 15cae12804 ("glsl/linker: fix output variable overlap check")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit df8767a14e)

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
2017-09-28 13:54:56 +00:00
..
amd ac/surface: handle S8 on gfx9 2017-09-28 13:54:56 +00:00
broadcom broadcom: correct header file in BROADCOM_FILES 2017-07-24 01:40:05 +03:00
compiler glsl/linker: fix output variable overlap check 2017-09-28 13:54:56 +00:00
egl egl/x11/dri3: adding missing __DRI_BACKGROUND_CALLABLE extension 2017-09-13 21:52:42 +01:00
gallium amd/common: add workaround for cube map array layer clamping 2017-09-28 13:54:56 +00:00
gbm gbm: fix typo 2017-07-19 15:51:54 +01:00
getopt
glx glxcmds: Fix a typo in the __APPLE__ codepath 2017-08-17 15:48:20 -07:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl
intel anv: Fix descriptors copying 2017-09-28 13:54:56 +00:00
loader dri3: Wait for all pending swapbuffers to be scheduled before touching the front 2017-08-05 00:09:25 +01:00
mapi mapi: add missing no_error tag to glBlitNamedFramebuffer() 2017-07-18 10:07:34 +02:00
mesa i965/blorp: Set r8stencil_needs_update when writing stencil 2017-09-28 13:54:55 +00:00
util util/u_atomic: Add implementation of __sync_val_compare_and_swap_8 2017-09-28 13:54:55 +00:00
vulkan vulkan/util: fix typo in comment 2017-07-18 13:56:04 +01:00
Makefile.am build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00
SConscript build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00