summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-03-23 14:53:48 -0600
committerIan Romanick <ian.d.romanick@intel.com>2012-07-06 10:09:00 -0700
commit04f7c32f789de49338bc1a69d66bb49374f8b09c (patch)
tree484800149fb164f6afb894ca2b91ff26fdfd2bf6
parentda8d65fde46ac324d03ea667124d60db93047870 (diff)
downloadmesa-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.c5
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++;
}