r600g: cayman umad assigns dst pointlessly
authorDave Airlie <airlied@redhat.com>
Tue, 18 Nov 2014 00:22:24 +0000 (10:22 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 18 Nov 2014 01:59:30 +0000 (11:59 +1000)
There is no need to assign dst here, just use the chan from j

Pointed out by glennk.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c

index ac26d77..4c6ae45 100644 (file)
@@ -7095,7 +7095,7 @@ static int tgsi_umad(struct r600_shader_ctx *ctx)
                                for (k = 0; k < inst->Instruction.NumSrcRegs; k++) {
                                        r600_bytecode_src(&alu.src[k], &ctx->src[k], i);
                                }
-                               tgsi_dst(ctx, &inst->Dst[0], j, &alu.dst);
+                               alu.dst.chan = j;
                                alu.dst.sel = ctx->temp_reg;
                                alu.dst.write = (j == i);
                                if (j == 3)