nvc0: force perspective correction hint to nicest
[mesa.git] / src / gallium / drivers / nvc0 / nvc0_pc_emit.c
index 76ad40dbcf8d018dcd4c914f14af27a0833b2623..6f409a9e925c1455d2a52fce51906d5ce60a30ca 100644 (file)
@@ -715,6 +715,10 @@ emit_interp(struct nv_pc *pc, struct nv_instruction *i)
    if (i->opcode == NV_OP_PINTERP) {
       pc->emit[0] |= 0x040;
       SID(pc, i->src[1], 26);
+
+      if (i->src[0]->value->reg.address >= 0x280 &&
+          i->src[0]->value->reg.address <= 0x29c)
+         pc->emit[0] |= 0x080; /* XXX: ? */
    } else {
       SID(pc, NULL, 26);
    }