Re-apply "glsl: don't try to lower non-gl builtins as if they were gl_FragData"
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 1 Jul 2016 23:10:36 +0000 (19:10 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 10 Aug 2016 13:43:36 +0000 (15:43 +0200)
commitbc5df3b321c5393b2f10115cfa5acc8f11bd7146
tree7897ae52ba1bfbedc3af2acc9ea487a0c4da1c85
parent9c63fd90561c32bccd905d8e0abf4864941f359a
Re-apply "glsl: don't try to lower non-gl builtins as if they were gl_FragData"

If a shader has an output array, it will get treated as though it were
gl_FragData and rewritten into gl_out_FragData instances. We only want
this to happen on the actual gl_FragData and not everything else.

This is a small part of the problem pointed out by the below bug.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96765
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/opt_dead_builtin_varyings.cpp