From a432079400f63c44fadb11b93c3ff8fb916159cf Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sat, 5 Jul 2014 19:30:50 -0400 Subject: [PATCH] nvc0/ir: fix encoding of offset register into interpolation instruction Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2