print_vertex func for debugging
This commit is contained in:
@@ -236,6 +236,18 @@ static void flush_spans( struct setup_stage *setup )
|
|||||||
setup->span.right[1] = 0;
|
setup->span.right[1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
static void print_vertex(const struct setup_stage *setup,
|
||||||
|
const struct vertex_header *v)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
printf("Vertex:\n");
|
||||||
|
for (i = 0; i < setup->softpipe->nr_attrs; i++) {
|
||||||
|
printf(" %d: %f %f %f\n", i,
|
||||||
|
v->data[i][0], v->data[i][1], v->data[i][2]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static GLboolean setup_sort_vertices( struct setup_stage *setup,
|
static GLboolean setup_sort_vertices( struct setup_stage *setup,
|
||||||
const struct prim_header *prim )
|
const struct prim_header *prim )
|
||||||
@@ -244,6 +256,13 @@ static GLboolean setup_sort_vertices( struct setup_stage *setup,
|
|||||||
const struct vertex_header *v1 = prim->v[1];
|
const struct vertex_header *v1 = prim->v[1];
|
||||||
const struct vertex_header *v2 = prim->v[2];
|
const struct vertex_header *v2 = prim->v[2];
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
printf("Triangle:\n");
|
||||||
|
print_vertex(setup, v0);
|
||||||
|
print_vertex(setup, v1);
|
||||||
|
print_vertex(setup, v2);
|
||||||
|
#endif
|
||||||
|
|
||||||
setup->vprovoke = v2;
|
setup->vprovoke = v2;
|
||||||
|
|
||||||
/* determine bottom to top order of vertices */
|
/* determine bottom to top order of vertices */
|
||||||
@@ -429,7 +448,6 @@ static void tri_persp_coeff( struct setup_stage *setup,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compute the setup->coef[] array dadx, dady, a0 values.
|
* Compute the setup->coef[] array dadx, dady, a0 values.
|
||||||
* Must be called after setup->vmin,vmid,vmax,vprovoke are initialized.
|
* Must be called after setup->vmin,vmid,vmax,vprovoke are initialized.
|
||||||
|
Reference in New Issue
Block a user