From: Ilia Mirkin Date: Sat, 5 Jul 2014 23:30:50 +0000 (-0400) Subject: nvc0/ir: fix encoding of offset register into interpolation instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a432079400f63c44fadb11b93c3ff8fb916159cf;p=mesa.git nvc0/ir: fix encoding of offset register into interpolation instruction Signed-off-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp index 84c2c6b0a49..dfb093cf1bc 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp @@ -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; }