diff options
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_lowering.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_lowering.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_lowering.c b/src/gallium/auxiliary/tgsi/tgsi_lowering.c index db23026691b..42f8880167e 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_lowering.c +++ b/src/gallium/auxiliary/tgsi/tgsi_lowering.c @@ -1573,12 +1573,10 @@ tgsi_transform_lowering(const struct tgsi_lowering_config *config, newlen += 2 * numtmp; newlen += 5; /* immediate */ - newtoks = tgsi_alloc_tokens(newlen); + newtoks = tgsi_transform_shader(tokens, newlen, &ctx.base); if (!newtoks) return NULL; - tgsi_transform_shader(tokens, newtoks, newlen, &ctx.base); - tgsi_scan_shader(newtoks, info); #if 0 /* debug */ |