glsl: Make is_fixed_function_array actually check for varyings.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 7 Jan 2017 20:55:17 +0000 (12:55 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 7 Jan 2017 21:05:37 +0000 (13:05 -0800)
commit42699e12711668a142b7acf11c168cf4301c1295
tree900e07735f082ea5243d717971994cf5d9d201c9
parent5a165b4086d0bb2fab26ebae3d78e2732eeb8f57
glsl: Make is_fixed_function_array actually check for varyings.

We can't check VARYING_SLOT_* locations until we've determined that
the variable is actually a varying.

Fixes assert failures in drivers which actually use this path,
such as radeonsi and i915.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99314
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/ir_set_program_inouts.cpp