From: Tilman Sauerbeck Date: Tue, 7 Sep 2010 09:38:18 +0000 (+0200) Subject: r600g: Added missing r600_bc_add_literal() calls to XPD implementation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e28dd4ebe73f85cdc38a6bdaeef23fd10223cf3;p=mesa.git r600g: Added missing r600_bc_add_literal() calls to XPD implementation. Signed-off-by: Dave Airlie --- 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);