softpipe->quad.output = sp_quad_output_stage(softpipe);
/*
- * Create drawing context and plug our render/setup stage into it.
+ * Create drawing context and plug our rendering stage into it.
*/
softpipe->draw = draw_create();
- draw_set_setup_stage(softpipe->draw, prim_setup(softpipe));
+ draw_set_setup_stage(softpipe->draw, sp_draw_render_stage(softpipe));
/*
* XXX we could plug GL selection/feedback into the drawing pipeline
-static void setup_begin( struct draw_stage *stage )
-{
- struct setup_stage *setup = setup_stage(stage);
-
- setup->quad.nr_attrs = setup->softpipe->nr_frag_attrs;
-}
-
-
/**
* Run shader on a quad/block.
*/
+static void setup_begin( struct draw_stage *stage )
+{
+ struct setup_stage *setup = setup_stage(stage);
+
+ setup->quad.nr_attrs = setup->softpipe->nr_frag_attrs;
+
+ /*
+ * XXX this is where we might map() the renderbuffers to begin
+ * s/w rendering.
+ */
+}
+
+
static void setup_end( struct draw_stage *stage )
{
+ /*
+ * XXX this is where we might unmap() the renderbuffers after
+ * s/w rendering.
+ */
}
/**
* Create a new primitive setup/render stage.
*/
-struct draw_stage *prim_setup( struct softpipe_context *softpipe )
+struct draw_stage *sp_draw_render_stage( struct softpipe_context *softpipe )
{
struct setup_stage *setup = CALLOC_STRUCT(setup_stage);
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#ifndef S_TRI_H
-#define S_TRI_H
+
+#ifndef SP_PRIM_SETUP_H
+#define SP_PRIM_SETUP_H
+
/* Vertices are just an array of floats, with all the attributes
* packed. We currently assume a layout like:
#include "s_context.h"
-extern struct draw_stage *prim_setup( struct softpipe_context *softpipe );
+extern struct draw_stage *sp_draw_render_stage( struct softpipe_context *softpipe );
#if 0 /* UNUSED? */
#ifdef SETUP_PRIVATE
-
-
-
-
-
GLboolean tri_setup( struct tri_context *tri,
const struct vertex *v0,
const struct vertex *v1,
void tri_rasterize( struct tri_context *tri );
void tri_rasterize_spans( struct tri_context *tri );
-
-
-
+#endif
#endif
-#endif
-#endif
+
+#endif /* SP_PRIM_SETUP_H */