diff options
author | Michal Krol <[email protected]> | 2009-11-24 09:01:48 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-11-24 09:05:28 +0100 |
commit | 5ee0d9f632383339088cc33005b7794b0915d4e0 (patch) | |
tree | 6fd3cb856ce76a8a567c166f3f40b3708f6805bb /src/gallium/auxiliary/tgsi/tgsi_parse.c | |
parent | 57221c54387a43e268a80ee6b578d57e03efcc5e (diff) |
tgsi: Account for gallium shader token representation changes.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_parse.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_parse.c b/src/gallium/auxiliary/tgsi/tgsi_parse.c index 83f9df1183e..9ca29934528 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_parse.c +++ b/src/gallium/auxiliary/tgsi/tgsi_parse.c @@ -175,6 +175,10 @@ tgsi_parse_token( copy_token(&inst->Instruction, &token); extended = inst->Instruction.Extended; + if (inst->Instruction.Predicate) { + next_token(ctx, &inst->InstructionPredicate); + } + while( extended ) { struct tgsi_src_register_ext token; @@ -189,10 +193,6 @@ tgsi_parse_token( copy_token(&inst->InstructionExtTexture, &token); break; - case TGSI_INSTRUCTION_EXT_TYPE_PREDICATE: - copy_token(&inst->InstructionExtPredicate, &token); - break; - default: assert( 0 ); } |