[Mesa-dev] [PATCH 1/3] nv50/ir: clean up src2 in ConstantFolding
Karol Herbst
kherbst at redhat.com
Fri Dec 14 23:12:37 UTC 2018
no changes in shader-db
Signed-off-by: Karol Herbst <kherbst at 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 5d3b4aba9cc..a8bd4f868bf 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
@@ -763,6 +763,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.19.2
More information about the mesa-dev
mailing list