From: Francisco Jerez Date: Thu, 14 Jul 2016 19:57:14 +0000 (-0700) Subject: glsl/linker: Allow fragment output overlap for gl_LastFragData. X-Git-Tag: upstream/17.1.0~7056 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=913ae618c6bdb42366f4d87265a6e35a88656e70;p=platform%2Fupstream%2Fmesa.git glsl/linker: Allow fragment output overlap for gl_LastFragData. gl_LastFragData overlaps gl_FragData by definition. Reviewed-by: Kenneth Graunke --- diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index a1a65ef..4b404ff 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -2673,6 +2673,9 @@ assign_attribute_or_color_locations(void *mem_ctx, } } + if (strcmp(var->name, "gl_LastFragData") == 0) + continue; + /* From GL4.5 core spec, section 15.2 (Shader Execution): * * "Output binding assignments will cause LinkProgram to fail: