summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/softpipe/sp_quad_fs.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-11-22 02:46:45 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-11-22 02:46:45 +0000
commit3e40341f9dcd7c1bbc9afb8ddb812304820396cf (patch)
tree274b3f522afe1da16ab2b5347758c908bc23fac4 /lib/mesa/src/gallium/drivers/softpipe/sp_quad_fs.c
parent7b644ad52b574bec410d557155d666ac17fdf51a (diff)
import Mesa 11.0.6
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.c10
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 );
}