nv50/ir: disable mul+add to mad for precise instructions
authorKarol Herbst <karolherbst@gmail.com>
Fri, 23 Jun 2017 18:30:29 +0000 (20:30 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 22 Jul 2017 03:45:18 +0000 (23:45 -0400)
commitf98a221f2d1dc250cbba8c8944c5db623c4ada0b
treee208750cb142b38b8c148285c494e311684011a8
parentf9bfc9301466c3b0d4248627b301d2f37ce0c4ab
nv50/ir: disable mul+add to mad for precise instructions

fixes
    missrendering in TombRaider
    KHR-GL44.gpu_shader5.precise_qualifier
    KHR-GL45.gpu_shader5.precise_qualifier

v4: disable opt only for MAD, it's fine for SAD

Signed-off-by: Karol Herbst <karolherbst@gmail.com>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp