summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/linker.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2016-07-14 12:57:14 -0700
committerFrancisco Jerez <currojerez@riseup.net>2016-08-24 13:28:31 -0700
commit913ae618c6bdb42366f4d87265a6e35a88656e70 (patch)
tree92bcbb4d968d4e5356a94ebe7e77d2b385508ab8 /src/compiler/glsl/linker.cpp
parent6b3d23dcc07a584a7c6fcd64b025e88a92047c49 (diff)
downloadexternal_mesa3d-913ae618c6bdb42366f4d87265a6e35a88656e70.zip
external_mesa3d-913ae618c6bdb42366f4d87265a6e35a88656e70.tar.gz
external_mesa3d-913ae618c6bdb42366f4d87265a6e35a88656e70.tar.bz2
glsl/linker: Allow fragment output overlap for gl_LastFragData.
gl_LastFragData overlaps gl_FragData by definition. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/glsl/linker.cpp')
-rw-r--r--src/compiler/glsl/linker.cpp3
1 files changed, 3 insertions, 0 deletions
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: