summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-09-25 17:28:13 +0200
committerMarek Olšák <[email protected]>2012-09-27 19:14:44 +0200
commit96f50d0cf7bb13507f272d2f6ef9a6fca24d18e1 (patch)
treef793fc517e1362fa4aaaf6d344094d1112c19ac4 /src/gallium
parentfd5c5384648a0d6191c19748a2d1f1148c5ee98f (diff)
r600g: fix EXP on Cayman
NOTE: This is a candidate for the stable branches.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c6
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 7df549ba702..29616f987e6 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -4388,10 +4388,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;