r600g: fix EXP on Cayman

NOTE: This is a candidate for the stable branches.
This commit is contained in:
Marek Olšák
2012-09-25 17:28:13 +02:00
parent fd5c538464
commit 96f50d0cf7

View File

@@ -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;