From: Karol Herbst Date: Fri, 23 Jun 2017 18:30:27 +0000 (+0200) Subject: nv50/ir: add precise field to Instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d7c232fbdab3bda71f93669be2e11449aa63f8f;p=mesa.git nv50/ir: add precise field to Instruction v4: initialize field with NULL Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp index 21641a4746c..08181b790f4 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp @@ -575,6 +575,7 @@ void Instruction::init() encSize = 0; ipa = 0; mask = 0; + precise = 0; lanes = 0xf; diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.h b/src/gallium/drivers/nouveau/codegen/nv50_ir.h index 5c09fed05c1..bc15992df0e 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.h +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.h @@ -884,6 +884,8 @@ public: unsigned perPatch : 1; unsigned exit : 1; // terminate program after insn unsigned mask : 4; // for vector ops + // prevent algebraic optimisations that aren't bit-for-bit identical + unsigned precise : 1; int8_t postFactor; // MUL/DIV(if < 0) by 1 << postFactor