util/u_pstipple.c: copy immediates during transformation
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 15 Jan 2016 21:56:15 +0000 (16:56 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 19 Jan 2016 15:52:35 +0000 (10:52 -0500)
Apparently, nobody has combined stippling with a fragment shader
containing immediates in almost five years...

Fixes a bug in Kodi with radeonsi reported by Christian König.

Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Tested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_pstipple.c

index 08dec13846d7c6ed163817e1447bed1b1a11a7bb..3428172203b1c36776de48826a272a8f2b7835c7 100644 (file)
@@ -230,6 +230,7 @@ pstip_transform_immed(struct tgsi_transform_context *ctx,
    struct pstip_transform_context *pctx =
       (struct pstip_transform_context *) ctx;
    pctx->numImmed++;
+   ctx->emit_immediate(ctx, immed);
 }