From 1e28dd4ebe73f85cdc38a6bdaeef23fd10223cf3 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Tue, 7 Sep 2010 11:38:18 +0200 Subject: r600g: Added missing r600_bc_add_literal() calls to XPD implementation. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_shader.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 6612b0e38f6..129c95ef68a 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -1850,6 +1850,10 @@ static int tgsi_xpd(struct r600_shader_ctx *ctx) r = r600_bc_add_alu(ctx->bc, &alu); if (r) return r; + + r = r600_bc_add_literal(ctx->bc, ctx->value); + if (r) + return r; } for (i = 0; i < 4; i++) { @@ -1907,6 +1911,10 @@ static int tgsi_xpd(struct r600_shader_ctx *ctx) r = r600_bc_add_alu(ctx->bc, &alu); if (r) return r; + + r = r600_bc_add_literal(ctx->bc, ctx->value); + if (r) + return r; } if (use_temp) return tgsi_helper_copy(ctx, inst); -- cgit v1.2.3