ir_to_mesa: Don't generate swizzles for record derefs of non-scalar/vectors
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Dec 2010 23:42:46 +0000 (15:42 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Dec 2010 23:47:56 +0000 (15:47 -0800)
commit2d577ee730c30caacf711babde6542766aa0b655
tree3772be7b9a25209820c926854f3f637071ad0cce
parentcb2b547a4771ddf56975ede566dbf3a8f5389689
ir_to_mesa: Don't generate swizzles for record derefs of non-scalar/vectors

This is the same as what the array dereference handler does.

Fixes piglit test glsl-link-struct-array (bugzilla #31648).

NOTE: This is a candidate for the 7.9 and 7.10 branches.
src/mesa/program/ir_to_mesa.cpp