summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_parse.c
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2010-01-19 13:16:20 +0100
committerMichal Krol <[email protected]>2010-01-28 14:07:24 +0100
commit4367de152cc5bd7240d75a33e75c1b1671b5cc16 (patch)
tree71ed2b871eac71d6113bf97555a96e0f4974ab0e /src/gallium/auxiliary/tgsi/tgsi_parse.c
parent0adfdaeaa1e20c81a9f37455fe78d15c6406e3d3 (diff)
tgsi: Handle 2-D declarations.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_parse.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_parse.c b/src/gallium/auxiliary/tgsi/tgsi_parse.c
index 8c7062d850c..fd37fc3079b 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_parse.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_parse.c
@@ -109,6 +109,10 @@ tgsi_parse_token(
next_token( ctx, &decl->Range );
+ if (decl->Declaration.Dimension) {
+ next_token(ctx, &decl->Dim);
+ }
+
if( decl->Declaration.Semantic ) {
next_token( ctx, &decl->Semantic );
}