nv50/ir: clear subop when folding constant expressions
authorTobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Tue, 3 Jun 2014 22:35:47 +0000 (00:35 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 6 Jun 2014 04:00:26 +0000 (00:00 -0400)
commit3164bfc73418e2e046c7a750eaac8a6d66dfe02d
treed18c41ea8771ecb99a4749042b5e45bc6602fd7e
parent221169693bf1dfdaf46dddc1df318cee992237aa
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: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp