glsl: Don't attempt to do dead varying elimination on gl_LastFragData arrays.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 20 Jul 2016 03:23:17 +0000 (20:23 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 24 Aug 2016 20:28:31 +0000 (13:28 -0700)
commit5e1d34394e80198da774ca87133da34506a89c29
tree053d36750c24ed07d2981f1129543bcfc2667b51
parent6b33eab959433fdcb4f3fce7c571a83e8050cdf0
glsl: Don't attempt to do dead varying elimination on gl_LastFragData arrays.

Apparently this pass can only handle elimination of a single built-in
fragment output array, so the presence of gl_LastFragData (which it
wouldn't split correctly anyway) could prevent it from splitting the
actual gl_FragData array.  Just match gl_FragData by name since it's
the only built-in it can handle.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/opt_dead_builtin_varyings.cpp