gk110/ir: fix interp mode emission
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 7 Jun 2014 00:33:06 +0000 (20:33 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 7 Jun 2014 00:33:06 +0000 (20:33 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp

index 9a8c4b913e0ed96be5adadf35214affddc92958d..e1b5a74fb39849a9e9b6741b9ecb46bb63228582 100644 (file)
@@ -1326,7 +1326,8 @@ CodeEmitterGK110::emitOUT(const Instruction *i)
 void
 CodeEmitterGK110::emitInterpMode(const Instruction *i)
 {
-   code[1] |= i->ipa << 21; // TODO: INTERP_SAMPLEID
+   code[1] |= (i->ipa & 0x3) << 21; // TODO: INTERP_SAMPLEID
+   code[1] |= (i->ipa & 0xc) << (19 - 2);
 }
 
 void