diff options
author | Dave Airlie <[email protected]> | 2014-11-18 10:22:24 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-11-18 11:59:30 +1000 |
commit | 70dac5fa442a8c0cc8dfa2d8879c5c3c3dd885e4 (patch) | |
tree | 34b78a27e39f83cb768d438d91b5ef341fe3ce51 /src/gallium/drivers | |
parent | 4a128d5a16a575faaac969468a3aaafce48504cf (diff) |
r600g: cayman umad assigns dst pointlessly
There is no need to assign dst here, just use the chan from j
Pointed out by glennk.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index ac26d77ec91..4c6ae4545ff 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -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) |