nv50/ir: remove dnz flag when converting MAD to ADD due to optimizations
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 25 Nov 2018 02:56:00 +0000 (21:56 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 25 Nov 2018 03:15:53 +0000 (22:15 -0500)
commit927ce66b391523cc5ac58b36efdac31c4629fb86
tree94d117d415d9c82719bcf8b90a087b6bbcf1d197
parentd4e7d8b7f053db081a4ffdb59dc53f3531b0e60b
nv50/ir: remove dnz flag when converting MAD to ADD due to optimizations

dnz flag only applies for multiplications (e.g. to make 0 * Infinity
becomes 0 instead of NaN). Once we optimize a MAD into an ADD, the dnz
flag no longer makes sense, and upsets the GM107 emitter (since it looks
at the ftz and dnz flags together).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp