diff options
author | Brian Paul <brianp@vmware.com> | 2009-04-15 16:49:48 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-04-16 11:08:23 -0600 |
commit | fc76781456182f487fc7e0057ca8a4c648dfe530 (patch) | |
tree | 66e0ba607ff7eaaaca5422e28a95e617f0ba33a0 | |
parent | ee32e9b4753eca62e360f96ce61ef7ff683e6bb7 (diff) |
i965: const buffer debug code (disabled)
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_curbe.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_curbe.c b/src/mesa/drivers/dri/i965/brw_curbe.c index dfab14aa74..fe1de821f0 100644 --- a/src/mesa/drivers/dri/i965/brw_curbe.c +++ b/src/mesa/drivers/dri/i965/brw_curbe.c @@ -353,6 +353,14 @@ update_constant_buffer(struct brw_context *brw, map = const_buffer->virtual; memcpy(map, params->ParameterValues, size); 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]); + } + } } } @@ -363,6 +371,10 @@ 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("program %u\n", vp->program.Base.Id); + } update_constant_buffer(brw, vp->program.Base.Parameters, vp->const_buffer); } |