diff options
author | Karol Herbst <kherbst@redhat.com> | 2019-01-17 23:32:19 +0100 |
---|---|---|
committer | Karol Herbst <kherbst@redhat.com> | 2019-01-18 02:03:30 +0100 |
commit | 30b5c9eda2fe4c335cc15cb921e4f7774af0879e (patch) | |
tree | c91cda290fc7a55a566b0a20ebb006973fc08f61 | |
parent | 8424cd8fbd1671c4c13f57cfa34bf8145d0fffcf (diff) |
nv50/ir: disable tryCollapseChainedMULs in ConstantFolding for precise instructions
fixes dEQP-GLES2.functional.shaders.invariance.mediump.loop_3
CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |