mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 12:00:41 +02:00
i965: const buffer debug code (disabled)
This commit is contained in:
parent
ee32e9b475
commit
fc76781456
1 changed files with 12 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue