mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
llvmpipe: add a very useful (disabled) debugging output
Disabled by default, but it's very useful when needed. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
48b07fb4fc
commit
7a50d38a2b
1 changed files with 20 additions and 0 deletions
|
|
@ -302,6 +302,23 @@ subpixel_snap(float a)
|
||||||
return util_iround(FIXED_ONE * a);
|
return util_iround(FIXED_ONE * a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Print point vertex attribs (for debug).
|
||||||
|
*/
|
||||||
|
static void
|
||||||
|
print_point(struct lp_setup_context *setup,
|
||||||
|
const float (*v0)[4])
|
||||||
|
{
|
||||||
|
const struct lp_setup_variant_key *key = &setup->setup.variant->key;
|
||||||
|
uint i;
|
||||||
|
|
||||||
|
debug_printf("llvmpipe point\n");
|
||||||
|
for (i = 0; i < 1 + key->num_inputs; i++) {
|
||||||
|
debug_printf(" v0[%d]: %f %f %f %f\n", i,
|
||||||
|
v0[i][0], v0[i][1], v0[i][2], v0[i][3]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
try_setup_point( struct lp_setup_context *setup,
|
try_setup_point( struct lp_setup_context *setup,
|
||||||
|
|
@ -342,6 +359,9 @@ try_setup_point( struct lp_setup_context *setup,
|
||||||
layer = MIN2(layer, scene->fb_max_layer);
|
layer = MIN2(layer, scene->fb_max_layer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (0)
|
||||||
|
print_point(setup, v0);
|
||||||
|
|
||||||
/* Bounding rectangle (in pixels) */
|
/* Bounding rectangle (in pixels) */
|
||||||
{
|
{
|
||||||
/* Yes this is necessary to accurately calculate bounding boxes
|
/* Yes this is necessary to accurately calculate bounding boxes
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue