diff options
author | Marek Olšák <[email protected]> | 2012-09-25 17:28:13 +0200 |
---|---|---|
committer | Andreas Boll <[email protected]> | 2012-10-16 22:03:15 +0200 |
commit | ddcf624ac945537652e0a97176a7e8de72aa3092 (patch) | |
tree | 6df102ccaa517bab39a6d80615c011c7b7a47eda /src/gallium | |
parent | b3088ccee0f2ab6a10fa5d4f06935d02a149f0a7 (diff) |
r600g: fix EXP on Cayman
NOTE: This is a candidate for the stable branches.
(cherry picked from commit 96f50d0cf7bb13507f272d2f6ef9a6fca24d18e1)
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 59ea340926c..8c6ad166f15 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -2869,10 +2869,8 @@ static int tgsi_exp(struct r600_shader_ctx *ctx) alu.dst.sel = ctx->temp_reg; alu.dst.chan = i; - if (i == 0) - alu.dst.write = 1; - if (i == 2) - alu.last = 1; + alu.dst.write = i == 0; + alu.last = i == 2; r = r600_bytecode_add_alu(ctx->bc, &alu); if (r) return r; |