mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 04:10:10 +01:00
draw: move vertex header init out of fetch_shade_pipeline.c
This commit is contained in:
parent
caf293343f
commit
e106b2d3d6
5 changed files with 3 additions and 11 deletions
|
|
@ -211,7 +211,6 @@ fetch_store_general( struct fetch_pipeline_middle_end *fpme,
|
|||
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;
|
||||
|
|
@ -264,7 +263,6 @@ static void fetch_pipeline_run( struct draw_pt_middle_end *middle,
|
|||
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 *
|
||||
|
|
|
|||
|
|
@ -159,15 +159,6 @@ static void fetch_pipeline_run( struct draw_pt_middle_end *middle,
|
|||
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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -135,6 +135,7 @@ vs_exec_run( struct draw_vertex_shader *shader,
|
|||
out->clipmask = 0;
|
||||
}
|
||||
out->edgeflag = 1;
|
||||
out->vertex_id = UNDEFINED_VERTEX_ID;
|
||||
|
||||
if (!draw->identity_viewport) {
|
||||
/* Viewport mapping */
|
||||
|
|
|
|||
|
|
@ -140,6 +140,7 @@ vs_llvm_run( struct draw_vertex_shader *base,
|
|||
vOut[j]->clipmask = 0;
|
||||
}
|
||||
vOut[j]->edgeflag = 1;
|
||||
vOut[j]->vertex_id = UNDEFINED_VERTEX_ID;
|
||||
|
||||
if (!draw->identity_viewport) {
|
||||
/* Viewport mapping */
|
||||
|
|
|
|||
|
|
@ -158,6 +158,7 @@ vs_sse_run( struct draw_vertex_shader *base,
|
|||
out->clipmask = 0;
|
||||
}
|
||||
out->edgeflag = 1;
|
||||
out->vertex_id = UNDEFINED_VERTEX_ID;
|
||||
|
||||
if (!draw->identity_viewport) {
|
||||
/* Viewport mapping */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue