[Nouveau] [Bug 89455] [NVC0/Gallium] Unigine Heaven black and white boxes
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Apr 27 23:01:45 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89455
--- Comment #2 from Ilia Mirkin <imirkin at alum.mit.edu> ---
This patch seems to improve things for me (on a GF108). Pretty sure this is
incomplete though.
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
index 248f98d..0420bf2 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
@@ -2433,6 +2433,8 @@ Converter::handleInstruction(const struct
tgsi_full_instruction *insn)
src1 = fetchSrc(1, c);
geni = mkOp2(op, dstTy, dst0[c], src0, src1);
geni->subOp = tgsi::opcodeToSubOp(tgsi.getOpcode());
+ if (dstTy == TYPE_F32)
+ geni->ftz = true;
}
break;
case TGSI_OPCODE_MAD:
@@ -2442,7 +2444,9 @@ Converter::handleInstruction(const struct
tgsi_full_instruction *insn)
src0 = fetchSrc(0, c);
src1 = fetchSrc(1, c);
src2 = fetchSrc(2, c);
- mkOp3(op, dstTy, dst0[c], src0, src1, src2);
+ geni = mkOp3(op, dstTy, dst0[c], src0, src1, src2);
+ if (dstTy == TYPE_F32)
+ geni->ftz = true;
}
break;
case TGSI_OPCODE_MOV:
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150428/378b3286/attachment.html>
More information about the Nouveau
mailing list