glsl: Fix broadcast_index of lower_variable_index_to_cond_assign.
authorEric Anholt <eric@anholt.net>
Mon, 27 Sep 2010 22:46:51 +0000 (15:46 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 27 Sep 2010 22:52:56 +0000 (15:52 -0700)
commit668cdbe12958247f4a563c362dbf3247de7ccc3f
tree11c62afb6e8cdfdda930f55603d32d688c3b49b1
parent8b2d5f431f8c862374d3e352f228b016060cd70a
glsl: Fix broadcast_index of lower_variable_index_to_cond_assign.

It's trying to get an int smeared across all channels, not trying to
get a 1:1 mapping of a subset of a vector's channels.  This usually
ended up not mattering with ir_to_mesa, since it just smears floats
into every chan of a vec4.

Fixes:
glsl1-temp array with swizzled variable indexing
src/glsl/lower_variable_index_to_cond_assign.cpp