nvc0/ir: fix predicated PFETCH for real
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 30 Apr 2015 06:01:22 +0000 (02:01 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 30 Apr 2015 06:02:47 +0000 (02:02 -0400)
Commit a9d08a250 accidentally didn't make use of the new src1 variable.
Use it.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp

index a6e6c1f..6bb9620 100644 (file)
@@ -1336,7 +1336,7 @@ CodeEmitterGK110::emitPFETCH(const Instruction *i)
    const int src1 = (i->predSrc == 1) ? 2 : 1; // if predSrc == 1, !srcExists(2)
 
    defId(i->def(0), 2);
-   srcId(i, 1, 10);
+   srcId(i, src1, 10);
 }
 
 void
index 4ad098e..d9aed34 100644 (file)
@@ -1498,7 +1498,7 @@ CodeEmitterNVC0::emitPFETCH(const Instruction *i)
    const int src1 = (i->predSrc == 1) ? 2 : 1; // if predSrc == 1, !srcExists(2)
 
    defId(i->def(0), 14);
-   srcId(i, 1, 20);
+   srcId(i, src1, 20);
 }
 
 void