tgsi: text parser: fix parsing of array in declaration
authorDave Airlie <airlied@gmail.com>
Sun, 16 Jun 2013 11:24:00 +0000 (21:24 +1000)
committerDave Airlie <airlied@gmail.com>
Mon, 17 Jun 2013 22:25:12 +0000 (08:25 +1000)
commit9e8400f4c95bde1f955c7977066583b507159a10
treeba16becf86b3c45c7829026c3fe6499672cc74f0
parent0829b893a9e9c874c0ef80d343af49334305e32e
tgsi: text parser: fix parsing of array in declaration

I noticed this code didn't work as advertised while doing some passing around
of TGSI shaders and trying to reparse them, and things failing.

This seems to fix it here for at least the small test case I hacked into a
graw test.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/tgsi/tgsi_text.c