nvc0/ir: fix encoding of offset register into interpolation instruction
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 5 Jul 2014 23:30:50 +0000 (19:30 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 10 Jul 2014 01:10:24 +0000 (21:10 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp

index 84c2c6b0a4978a6cebe01c30bb248fa70cc92609..dfb093cf1bcd9a4352534acad03aa95e41d777d1 100644 (file)
@@ -1561,7 +1561,7 @@ CodeEmitterNVC0::emitINTERP(const Instruction *i)
    defId(i->def(0), 14);
 
    if (i->getSampleMode() == NV50_IR_INTERP_OFFSET)
-      srcId(i->src(i->op == OP_PINTERP ? 2 : 1), 17);
+      srcId(i->src(i->op == OP_PINTERP ? 2 : 1), 32 + 17);
    else
       code[1] |= 0x3f << 17;
 }