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@gmail.com>
This commit is contained in:
Vadim Girlin 2011-07-06 05:29:09 +04:00 committed by Alex Deucher
parent 86f8b4117f
commit b693787fdf
1 changed files with 1 additions and 0 deletions

View File

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