From: Ilia Mirkin Date: Sun, 15 Jan 2017 17:15:06 +0000 (-0500) Subject: nvc0/ir: emit FMZ flag when requested on FFMA X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd39e487261990a7e7ac699d004e64dda48f08d8;p=mesa.git nvc0/ir: emit FMZ flag when requested on FFMA Signed-off-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp index ef0693987cd..a58335dd8f3 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp @@ -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 {