nvc0/ir: emit FMZ flag when requested on FFMA
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 15 Jan 2017 17:15:06 +0000 (12:15 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 15 Jan 2017 18:13:58 +0000 (13:13 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp

index ef0693987cd43886c04f4d4d3023c4bcf0ea1eaa..a58335dd8f337b5eb855818d421433c9696c0ca2 100644 (file)
@@ -537,6 +537,10 @@ CodeEmitterNVC0::emitFMAD(const Instruction *i)
 
       if (i->saturate)
          code[0] |= 1 << 5;
+
+      if (i->dnz)
+         code[0] |= 1 << 7;
+      else
       if (i->ftz)
          code[0] |= 1 << 6;
    } else {