coef->a0[i] = (v[0] -
(dadx * (setup->vmin[0][0] - setup->pixel_offset) +
dady * (setup->vmin[0][1] - setup->pixel_offset)));
-
- /*
- debug_printf("attr[%d].%c: %f dx:%f dy:%f\n",
- slot, "xyzw"[i],
- setup->coef[slot].a0[i],
- setup->coef[slot].dadx[i],
- setup->coef[slot].dady[i]);
- */
}
float dadx = a * setup->oneoverarea;
float dady = b * setup->oneoverarea;
- /*
- debug_printf("tri persp %d,%d: %f %f %f\n", vertSlot, i,
- setup->vmin[vertSlot][i],
- setup->vmid[vertSlot][i],
- setup->vmax[vertSlot][i]
- );
- */
assert(i <= 3);
coef->dadx[i] = dadx;
setup->coef[fragSlot].dadx[0] = 0.0;
setup->coef[fragSlot].dady[0] = 0.0;
}
+
+ if (0) {
+ for (j = 0; j < TGSI_NUM_CHANNELS; j++) {
+ debug_printf("attr[%d].%c: a0:%f dx:%f dy:%f\n",
+ fragSlot, "xyzw"[j],
+ setup->coef[fragSlot].a0[j],
+ setup->coef[fragSlot].dadx[j],
+ setup->coef[fragSlot].dady[j]);
+ }
+ }
}
}