glsl: fix assertion which fails for unsigned array indices.
authortiffany <tiffany@stormbit.net>
Sat, 30 Aug 2014 18:30:00 +0000 (12:30 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 3 Sep 2014 19:52:39 +0000 (13:52 -0600)
commitcfc42db592a7d9684d5cee8d4238a0b2dd6f0603
tree54cf9db8ab2f47af36fc5f5433abb80bd8e7cf93
parent11ee9a4d99fd68be4c09341225e7faeff70d1b9b
glsl: fix assertion which fails for unsigned array indices.

According to the GLSL 1.40 spec, section 5.7 Structure and Array Operations:

"Array elements are accessed using an expression whose type is int or uint."

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/glsl/lower_variable_index_to_cond_assign.cpp