2007-06-20 14:29:14 -06:00
|
|
|
|
|
|
|
|
|
|
|
#include "sp_context.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
sp_build_quad_pipeline(struct softpipe_context *sp)
|
|
|
|
{
|
2007-06-20 17:20:02 -06:00
|
|
|
/* build up the pipeline in reverse order... */
|
2007-06-20 14:29:14 -06:00
|
|
|
|
|
|
|
sp->quad.first = sp->quad.output;
|
|
|
|
|
|
|
|
if (sp->blend.blend_enable) {
|
|
|
|
sp->quad.blend->next = sp->quad.first;
|
|
|
|
sp->quad.first = sp->quad.blend;
|
|
|
|
}
|
|
|
|
|
2007-06-20 17:20:02 -06:00
|
|
|
if (sp->depth_test.enabled) {
|
|
|
|
sp->quad.depth_test->next = sp->quad.first;
|
|
|
|
sp->quad.first = sp->quad.depth_test;
|
|
|
|
}
|
|
|
|
|
2007-06-20 14:29:14 -06:00
|
|
|
/* XXX always enable shader? */
|
|
|
|
if (1) {
|
|
|
|
sp->quad.shade->next = sp->quad.first;
|
|
|
|
sp->quad.first = sp->quad.shade;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|