diff options
author | Christian König <[email protected]> | 2013-03-13 14:58:15 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2013-03-19 13:38:32 +0100 |
commit | 16caeff2a5cc1237d30de9487b48b1cd775d9ae1 (patch) | |
tree | d4e7d56d7ff611afaa754a6fb7958816c3a0674b /src/gallium/auxiliary/tgsi/tgsi_parse.c | |
parent | d3e07bed90d6b94ac37a7f48417bf8962408fa47 (diff) |
tgsi: add ArrayID to declarations
Remember which declarations are declared as "arrays" and so
can be indirectly addressed. ArrayIDs start at 1, cause for
compatibility reasons zero is treaded as no array present.
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_parse.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_parse.c | 4 |
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 720d68d1f22..29079ef2140 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_parse.c +++ b/src/gallium/auxiliary/tgsi/tgsi_parse.c @@ -129,6 +129,10 @@ tgsi_parse_token( next_token(ctx, &decl->SamplerView); } + if( decl->Declaration.Array ) { + next_token(ctx, &decl->Array); + } + break; } |