Mesa (master): r600g: RSQ: clear NEG for operand
Alex Deucher
agd5f at kemper.freedesktop.org
Fri Jul 8 21:22:14 UTC 2011
Module: Mesa
Branch: master
Commit: b693787fdf82d065c548e80944aad14e9ba64def
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b693787fdf82d065c548e80944aad14e9ba64def
Author: Vadim Girlin <vadimgirlin at gmail.com>
Date: Wed Jul 6 05:29:09 2011 +0400
r600g: RSQ: clear NEG for operand
Need to clear NEG bit because it applies after ABS, e.g. "RSQ ..., -1"
uses -|1| as operand.
Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
---
src/gallium/drivers/r600/r600_shader.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index f3cbf98..5aad3e3 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -1506,6 +1506,7 @@ static int tgsi_rsq(struct r600_shader_ctx *ctx)
for (i = 0; i < inst->Instruction.NumSrcRegs; i++) {
r600_bc_src(&alu.src[i], &ctx->src[i], 0);
alu.src[i].abs = 1;
+ alu.src[i].neg = 0;
}
alu.dst.sel = ctx->temp_reg;
alu.dst.write = 1;
More information about the mesa-commit
mailing list