ir_to_mesa: Don't generate swizzles for record derefs of non-scalar/vectors
commit0d98ceb4bfc9f0ac5462e060fa1d66c9b8b7d031
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Dec 2010 23:42:46 +0000 (13 15:42 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 4 Jan 2011 01:05:24 +0000 (3 17:05 -0800)
tree88f856aea7bd24f9174946d675c3006d5651c16a
parent40390b80e93ce83fc796e6048ec5dc7e15b4f05e
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.
(cherry picked from commit 2d577ee730c30caacf711babde6542766aa0b655)
src/mesa/program/ir_to_mesa.cpp