Skip to content
Snippets Groups Projects
Commit 3164bfc7 authored by Tobias Klausmann's avatar Tobias Klausmann Committed by Ilia Mirkin
Browse files

nv50/ir: clear subop when folding constant expressions


Some operations (e.g. OP_MUL/OP_MAD/OP_EXTBF) might have a subop set.
After folding, make sure that it is cleared

Signed-off-by: default avatarTobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Reviewed-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
parent 22116969
No related branches found
No related tags found
No related merge requests found
......@@ -563,6 +563,7 @@ ConstantFolding::expr(Instruction *i,
} else {
i->op = i->saturate ? OP_SAT : OP_MOV; /* SAT handled by unary() */
}
i->subOp = 0;
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment