mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
gallium: additional debug code
This commit is contained in:
parent
809bc8f9ad
commit
5d873c8718
1 changed files with 13 additions and 0 deletions
|
|
@ -61,6 +61,12 @@ compute_clipmask_gl(const float *clip, /*const*/ float plane[][4], unsigned nr)
|
|||
unsigned mask = 0x0;
|
||||
unsigned i;
|
||||
|
||||
#if 0
|
||||
debug_printf("compute clipmask %f %f %f %f\n",
|
||||
clip[0], clip[1], clip[2], clip[3]);
|
||||
assert(clip[3] != 0.0);
|
||||
#endif
|
||||
|
||||
/* Do the hardwired planes first:
|
||||
*/
|
||||
if (-clip[0] + clip[3] < 0) mask |= (1<<0);
|
||||
|
|
@ -122,6 +128,13 @@ static boolean post_vs_cliptest_viewport_gl( struct pt_post_vs *pvs,
|
|||
out->data[0][1] = out->data[0][1] * w * scale[1] + trans[1];
|
||||
out->data[0][2] = out->data[0][2] * w * scale[2] + trans[2];
|
||||
out->data[0][3] = w;
|
||||
#if 0
|
||||
debug_printf("post viewport: %f %f %f %f\n",
|
||||
out->data[0][0],
|
||||
out->data[0][1],
|
||||
out->data[0][2],
|
||||
out->data[0][3]);
|
||||
#endif
|
||||
}
|
||||
|
||||
out = (struct vertex_header *)( (char *)out + stride );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue