summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-04-22 09:07:46 -0600
committerBrian Paul <[email protected]>2009-04-22 09:07:46 -0600
commit6b6a23c0f7e042d71764a2028f3d33b59076ac7c (patch)
treeb2b39b101becbfe23edb5be8c1e4a61c4ded53fa /src/mesa
parent817dcdd280cd749c3186bd3f00c06f41270aa884 (diff)
i965: updates to some debug code
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_curbe.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_curbe.c b/src/mesa/drivers/dri/i965/brw_curbe.c
index 3c81899672e..da746e4aa05 100644
--- a/src/mesa/drivers/dri/i965/brw_curbe.c
+++ b/src/mesa/drivers/dri/i965/brw_curbe.c
@@ -352,11 +352,7 @@ update_constant_buffer(struct brw_context *brw,
dri_bo_unmap(const_buffer);
if (0) {
- int i;
- for (i = 0; i < params->NumParameters; i++) {
- float *p = params->ParameterValues[i];
- printf("%d: %f %f %f %f\n", i, p[0], p[1], p[2], p[3]);
- }
+ _mesa_print_parameter_list(params);
}
}
}
@@ -369,7 +365,7 @@ update_vertex_constant_buffer(struct brw_context *brw)
struct brw_vertex_program *vp =
(struct brw_vertex_program *) brw->vertex_program;
if (0) {
- printf("update VS constants in buffer %p\n", vp->const_buffer);
+ printf("update VS constants in buffer %p vp = %p\n", vp->const_buffer, vp);
printf("program %u\n", vp->program.Base.Id);
}
update_constant_buffer(brw, vp->program.Base.Parameters, vp->const_buffer);
@@ -382,6 +378,10 @@ update_fragment_constant_buffer(struct brw_context *brw)
{
struct brw_fragment_program *fp =
(struct brw_fragment_program *) brw->fragment_program;
+ if (0) {
+ printf("update WM constants in buffer %p\n", fp->const_buffer);
+ printf("program %u\n", fp->program.Base.Id);
+ }
update_constant_buffer(brw, fp->program.Base.Parameters, fp->const_buffer);
}