glsl: Make lower_const_arrays_to_uniforms work directly on constants.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 30 Apr 2016 01:05:26 +0000 (18:05 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 23 Jun 2016 18:58:50 +0000 (11:58 -0700)
commitef78df8d3b0cf540e5f08c8c2f6caa338b64a6c7
treeb5e6e76636e75b0faf75357991405f555656fc64
parentf7741c521119ce147215d94a4c238e84fc8b1130
glsl: Make lower_const_arrays_to_uniforms work directly on constants.

There's really no point in looking at ir_dereference_array of a
constant.  It also misses cases like:

  (assign () (var_ref tmp) (constant (array ...) ...))

No changes in shader-db, but keeps it working after the next commit.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/lower_const_arrays_to_uniforms.cpp