nv50/ir: don't forget to mark flagsDef on cvt in txb lowering
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 3 Dec 2015 01:02:12 +0000 (20:02 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 3 Dec 2015 01:41:38 +0000 (20:41 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nv50.cpp

index 75164ef064111394fea50f8626bae35afc13077b..397c5a952e1da5cfd1e39c19b672004b38262bf4 100644 (file)
@@ -832,7 +832,7 @@ NV50LoweringPreSSA::handleTXB(TexInstruction *i)
    }
    Value *flags = bld.getScratch(1, FILE_FLAGS);
    bld.setPosition(cond, true);
-   bld.mkCvt(OP_CVT, TYPE_U8, flags, TYPE_U32, cond->getDef(0));
+   bld.mkCvt(OP_CVT, TYPE_U8, flags, TYPE_U32, cond->getDef(0))->flagsDef = 0;
 
    Instruction *tex[4];
    for (l = 0; l < 4; ++l) {