glsl_to_tgsi: emit multi-level structs and arrays properly.
authorDave Airlie <airlied@gmail.com>
Mon, 10 Dec 2012 07:20:05 +0000 (17:20 +1000)
committerDave Airlie <airlied@gmail.com>
Tue, 11 Dec 2012 20:57:38 +0000 (06:57 +1000)
commit5cdcd7251a213a448f2bfaf0e7527213c8afa3f5
treef1f46a2efb2129b9e7f4ac13c14ac248a514d715
parent2ee0b442528c7d0d0207504e8d315dfb5666afcd
glsl_to_tgsi: emit multi-level structs and arrays properly.

This follow the code from the i965 driver, and emits the structs
and arrays recursively.

This fixes an assert in the two UBO tests
fs-struct-copy-complicated and
vs-struct-copy-complicated

These tests now pass on softpipe, with no regressions.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp