glsl/lower_ubo_reference: split struct copies into element copies
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 23 Nov 2015 12:53:09 +0000 (13:53 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 1 Dec 2015 12:30:42 +0000 (13:30 +0100)
commit241f15ac80ddc452862b9d40d4d4bef648835ba0
tree84193acd0d862c61c0bf0d148af902aaec4d031e
parent867c436ca841b4196b4dde4786f5086c76b20dd7
glsl/lower_ubo_reference: split struct copies into element copies

Improves register pressure, since otherwise we end up emitting
loads for all the elements in the RHS and them emitting
stores for all elements in the LHS.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/lower_ubo_reference.cpp