Fixes a crash triggered by the next patch. no changes in shader-db
Signed-off-by: Karol Herbst <kher...@redhat.com> --- src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp index 32c6f9ee7af..3a4d7e27ef7 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -730,6 +730,7 @@ ConstantFolding::expr(Instruction *i, i->op = i->saturate ? OP_SAT : OP_MOV; if (i->saturate) unary(i, *i->getSrc(0)->asImm()); + i->setSrc(2, NULL); break; } i->subOp = 0; -- 2.17.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev