diff options
Diffstat (limited to 'lib/mesa/src/gallium/drivers/softpipe/sp_quad_fs.c')
-rw-r--r-- | lib/mesa/src/gallium/drivers/softpipe/sp_quad_fs.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/drivers/softpipe/sp_quad_fs.c b/lib/mesa/src/gallium/drivers/softpipe/sp_quad_fs.c index 26e7434ed..395bc70f2 100644 --- a/lib/mesa/src/gallium/drivers/softpipe/sp_quad_fs.c +++ b/lib/mesa/src/gallium/drivers/softpipe/sp_quad_fs.c @@ -55,6 +55,14 @@ struct quad_shade_stage }; +/** cast wrapper */ +static inline struct quad_shade_stage * +quad_shade_stage(struct quad_stage *qs) +{ + return (struct quad_shade_stage *) qs; +} + + /** * Execute fragment shader for the four fragments in the quad. * \return TRUE if quad is alive, FALSE if all four pixels are killed @@ -72,7 +80,7 @@ shade_quad(struct quad_stage *qs, struct quad_header *quad) /* run shader */ machine->flatshade_color = softpipe->rasterizer->flatshade ? TRUE : FALSE; - return softpipe->fs_variant->run( softpipe->fs_variant, machine, quad, softpipe->early_depth ); + return softpipe->fs_variant->run( softpipe->fs_variant, machine, quad ); } |