nv50/ir: avoid folding immediates into imad operations
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 2 Apr 2015 22:42:31 +0000 (18:42 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 2 Apr 2015 22:42:31 +0000 (18:42 -0400)
commit01d3b750b3682f3774f1bd01fa07a6b3c8baf28e
tree7f6913c036f49ced60752d879524beb67805ab6e
parent603d28f32c1083921ea9d54a0a606dd832e44aaa
nv50/ir: avoid folding immediates into imad operations

Commit 09ee907266 added logic to fold immediates into mad operations,
but the emission code is only there for fmad. Only allow it on float
types.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp