diff options
author | Brian Paul <brianp@vmware.com> | 2012-03-23 14:53:48 -0600 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2012-07-06 10:09:00 -0700 |
commit | 04f7c32f789de49338bc1a69d66bb49374f8b09c (patch) | |
tree | 484800149fb164f6afb894ca2b91ff26fdfd2bf6 | |
parent | da8d65fde46ac324d03ea667124d60db93047870 (diff) | |
download | mesa-04f7c32f789de49338bc1a69d66bb49374f8b09c.tar.gz |
draw: fix missing immediates bug in polygon stipple code
The function that counts the number of TGSI immediates also needs to
emit the immediates. This fixes assorted failures when using polygon
stipple with fragment shaders that have their own immediates.
NOTE: This is a candidate for the 8.0 branch.
(cherry picked from commit 7f16246acef4089570abca76a59580691ec6cf68)
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe_pstipple.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c b/src/gallium/auxiliary/draw/draw_pipe_pstipple.c index 0401a45507b..9ed425d150b 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c +++ b/src/gallium/auxiliary/draw/draw_pipe_pstipple.c @@ -165,11 +165,16 @@ pstip_transform_decl(struct tgsi_transform_context *ctx, } +/** + * TGSI immediate declaration transform callback. + * We're just counting the number of immediates here. + */ static void pstip_transform_immed(struct tgsi_transform_context *ctx, struct tgsi_full_immediate *immed) { struct pstip_transform_context *pctx = (struct pstip_transform_context *) ctx; + ctx->emit_immediate(ctx, immed); /* emit to output shader */ pctx->numImmed++; } |