llvmpipe: Only invoke the shader if necessary.

This commit is contained in:
José Fonseca 2009-10-10 18:44:46 +01:00
parent 7908c239e0
commit 0177c6e66c
1 changed files with 2 additions and 1 deletions

View File

@ -140,7 +140,8 @@ do_block( struct lp_rasterizer *rast,
cx3 += xstep3;
}
lp_rast_shade_quads(rast, &tri->inputs, x, y + iy, masks);
if(masks[0] || masks[1] || masks[2] || masks[3])
lp_rast_shade_quads(rast, &tri->inputs, x, y + iy, masks);
c1 += ystep1;
c2 += ystep2;