nv50/ir: fix wrong check when optimizing MAD to SHLADD
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 6 Oct 2016 23:08:54 +0000 (01:08 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 6 Oct 2016 23:13:06 +0000 (01:13 +0200)
commit28ecd3eac24ce41b8a855a50f366f1985d1dc934
tree13fa62a3cbf5129bb9ee3fb85d32f1a979bdaeb9
parent0b10152b806d111d0f56aec2e86a6e1deea65f24
nv50/ir: fix wrong check when optimizing MAD to SHLADD

Checking if MAD is supported is definitely wrong, and it's
more likely a typo I introduced few days ago which breaks
NV50 because SHLADD is not supported there.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp