Mesa (master): nv50/ir: disable tryCollapseChainedMULs in ConstantFolding for precise instructions
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jan 18 01:03:44 UTC 2019
Module: Mesa
Branch: master
Commit: 30b5c9eda2fe4c335cc15cb921e4f7774af0879e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=30b5c9eda2fe4c335cc15cb921e4f7774af0879e
Author: Karol Herbst <kherbst at redhat.com>
Date: Thu Jan 17 23:32:19 2019 +0100
nv50/ir: disable tryCollapseChainedMULs in ConstantFolding for precise instructions
fixes dEQP-GLES2.functional.shaders.invariance.mediump.loop_3
CC: <mesa-stable at lists.freedesktop.org>
Signed-off-by: Karol Herbst <kherbst at redhat.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
index 5d3b4aba9c..0b3220903b 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
@@ -1045,7 +1045,7 @@ ConstantFolding::opnd(Instruction *i, ImmediateValue &imm0, int s)
break;
}
case OP_MUL:
- if (i->dType == TYPE_F32)
+ if (i->dType == TYPE_F32 && !i->precise)
tryCollapseChainedMULs(i, s, imm0);
if (i->subOp == NV50_IR_SUBOP_MUL_HIGH) {
More information about the mesa-commit
mailing list