From: Karol Herbst Date: Thu, 17 Jan 2019 22:32:19 +0000 (+0100) Subject: nv50/ir: disable tryCollapseChainedMULs in ConstantFolding for precise instructions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30b5c9eda2fe4c335cc15cb921e4f7774af0879e;p=mesa.git nv50/ir: disable tryCollapseChainedMULs in ConstantFolding for precise instructions fixes dEQP-GLES2.functional.shaders.invariance.mediump.loop_3 CC: Signed-off-by: Karol Herbst Reviewed-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp index 5d3b4aba9cc..0b3220903b9 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) {