From 1d7c232fbdab3bda71f93669be2e11449aa63f8f Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Fri, 23 Jun 2017 20:30:27 +0200 Subject: [PATCH] nv50/ir: add precise field to Instruction v4: initialize field with NULL Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- src/gallium/drivers/nouveau/codegen/nv50_ir.cpp | 1 + src/gallium/drivers/nouveau/codegen/nv50_ir.h | 2 ++ 2 files changed, 3 insertions(+) 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 -- 2.30.2