static void fetch_pipeline_prepare( struct draw_pt_middle_end *middle,
unsigned prim )
{
- static const float zero = 0;
struct fetch_pipeline_middle_end *fpme = (struct fetch_pipeline_middle_end *)middle;
struct draw_context *draw = fpme->draw;
unsigned i, nr = 0;
unsigned draw_count )
{
struct fetch_pipeline_middle_end *fpme = (struct fetch_pipeline_middle_end *)middle;
- struct draw_context *draw = fpme->draw;
char *pipeline_verts;
pipeline_verts = MALLOC( fpme->pipeline_vertex_size *
return;
}
- /*FIXME: this init phase should go away */
- for (i = 0; i < fetch_count; ++i) {
- struct vertex_header *header =
- (struct vertex_header*)(pipeline_verts + (fpme->pipeline_vertex_size * i));
- header->clipmask = 0;
- header->edgeflag = draw_get_edgeflag(draw, i);
- header->pad = 0;
- header->vertex_id = UNDEFINED_VERTEX_ID;
- }
/* Shade
*/
out->clipmask = 0;
}
out->edgeflag = 1;
+ out->vertex_id = UNDEFINED_VERTEX_ID;
if (!draw->identity_viewport) {
/* Viewport mapping */
vOut[j]->clipmask = 0;
}
vOut[j]->edgeflag = 1;
+ vOut[j]->vertex_id = UNDEFINED_VERTEX_ID;
if (!draw->identity_viewport) {
/* Viewport mapping */
out->clipmask = 0;
}
out->edgeflag = 1;
+ out->vertex_id = UNDEFINED_VERTEX_ID;
if (!draw->identity_viewport) {
/* Viewport mapping */