mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 23:20:23 +01:00
i965: Keep around a copy of the VS constant surface dumping code.
Just like everywhere else, I never trust my constant uploads to correctly put constants in the right places, even though that's so rarely where the issue is.
This commit is contained in:
parent
5dc53444c8
commit
bf15ad3782
1 changed files with 9 additions and 0 deletions
|
|
@ -82,6 +82,15 @@ prepare_vs_constants(struct brw_context *brw)
|
|||
params->ParameterValues[i],
|
||||
4 * sizeof(float));
|
||||
}
|
||||
|
||||
if (0) {
|
||||
for (i = 0; i < params->NumParameters; i++) {
|
||||
float *row = (float *)brw->vs.const_bo->virtual + i * 4;
|
||||
printf("vs const surface %3d: %4.3f %4.3f %4.3f %4.3f\n",
|
||||
i, row[0], row[1], row[2], row[3]);
|
||||
}
|
||||
}
|
||||
|
||||
drm_intel_gem_bo_unmap_gtt(brw->vs.const_bo);
|
||||
brw->state.dirty.brw |= BRW_NEW_VS_CONSTBUF;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue