summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2013-11-14 12:21:02 +0000
committerRoland Scheidegger <[email protected]>2013-11-14 12:24:55 +0000
commit673d5391a2f4084525de6c5cebf322ddb0e2acf1 (patch)
treeae41f7564022e1995d6d70e4c5a4dd93a0965c26 /src
parent2dd693412a866db7744c9e458229693a81c7b911 (diff)
softpipe: (trivial) fix debug code
The debug printfs wouldn't actually compile when enabled, so kill them off and insert some new one in another place, and make sure it keeps compiling by enclosing it in a if-0 clause.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/softpipe/sp_setup.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c
index 03a2b462180..70a4b5a982d 100644
--- a/src/gallium/drivers/softpipe/sp_setup.c
+++ b/src/gallium/drivers/softpipe/sp_setup.c
@@ -511,14 +511,6 @@ tri_linear_coeff(struct setup_context *setup,
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]);
- */
}
@@ -549,13 +541,6 @@ tri_persp_coeff(struct setup_context *setup,
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;
@@ -668,6 +653,16 @@ setup_tri_coefficients(struct setup_context *setup)
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]);
+ }
+ }
}
}