checkpoint: implement z/depth testing
[mesa.git] / src / mesa / pipe / softpipe / sp_quad.c
1
2
3 #include "sp_context.h"
4
5
6
7 void
8 sp_build_quad_pipeline(struct softpipe_context *sp)
9 {
10 /* build up the pipeline in reverse order... */
11
12 sp->quad.first = sp->quad.output;
13
14 if (sp->blend.blend_enable) {
15 sp->quad.blend->next = sp->quad.first;
16 sp->quad.first = sp->quad.blend;
17 }
18
19 if (sp->depth_test.enabled) {
20 sp->quad.depth_test->next = sp->quad.first;
21 sp->quad.first = sp->quad.depth_test;
22 }
23
24 /* XXX always enable shader? */
25 if (1) {
26 sp->quad.shade->next = sp->quad.first;
27 sp->quad.first = sp->quad.shade;
28 }
29
30 }