r600g: Added missing r600_bc_add_literal() calls to XPD implementation.
authorTilman Sauerbeck <tilman@code-monkey.de>
Tue, 7 Sep 2010 09:38:18 +0000 (11:38 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Sep 2010 23:10:46 +0000 (09:10 +1000)
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c

index 6612b0e38f69c5e191bc42d3c96337f79d803c21..129c95ef68a5241de04f10c5988564fb5e26cb88 100644 (file)
@@ -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);