llvmpipe: triangle struct owns its copy of shader inputs

This commit is contained in:
Keith Whitwell 2009-10-08 22:46:21 +01:00
parent 0718c77005
commit 1814395b7e
2 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ struct lp_rast_triangle {
float dx31;
/* inputs for the shader */
struct lp_rast_shader_inputs *inputs;
struct lp_rast_shader_inputs inputs;
};

View File

@ -48,7 +48,7 @@ static void block_full( struct lp_rasterizer *rast,
int iy;
for (iy = 0; iy < 8; iy += 2)
lp_rast_shade_quads(rast, tri->inputs, x, y + iy, masks);
lp_rast_shade_quads(rast, &tri->inputs, x, y + iy, masks);
}
#else
static void block_full( struct lp_rasterizer *rast,
@ -59,7 +59,7 @@ static void block_full( struct lp_rasterizer *rast,
int iy;
for (iy = 0; iy < 4; iy += 2)
lp_rast_shade_quads(rast, tri->inputs, x, y + iy, masks);
lp_rast_shade_quads(rast, &tri->inputs, x, y + iy, masks);
}
#endif
@ -140,7 +140,7 @@ do_block( struct lp_rasterizer *rast,
cx3 += xstep3;
}
lp_rast_shade_quads(rast, tri->inputs, x, y + iy, masks);
lp_rast_shade_quads(rast, &tri->inputs, x, y + iy, masks);
c1 += ystep1;
c2 += ystep2;