Mesa (9.0): r600g: fix EXP on Cayman
Marek Olšák
mareko at kemper.freedesktop.org
Sun Sep 30 03:39:22 UTC 2012
Module: Mesa
Branch: 9.0
Commit: d9197f90372dec8a293d2d3e576261c6e3d38750
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d9197f90372dec8a293d2d3e576261c6e3d38750
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Sep 25 17:28:13 2012 +0200
r600g: fix EXP on Cayman
NOTE: This is a candidate for the stable branches.
(cherry picked from commit 96f50d0cf7bb13507f272d2f6ef9a6fca24d18e1)
---
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 2eda741..21019b7 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -4378,10 +4378,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;
More information about the mesa-commit
mailing list