summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-02-17 19:23:09 -0800
committerCorbin Simpson <[email protected]>2009-02-17 19:23:09 -0800
commit46ef26eb90a28b009de9349f38f36972d828a575 (patch)
tree23ad43d511b4ffc869562345358a9dd8adfe382f /src/gallium/drivers
parent81daa5323efbe798b11ea73d7ba289f3bb5e24cf (diff)
r300-gallium: Hook up new swtcl vbuf stage.
Hold on to your hats.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r300/r300_swtcl_emit.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_swtcl_emit.c b/src/gallium/drivers/r300/r300_swtcl_emit.c
index b745cee63b5..c8e7afb81b7 100644
--- a/src/gallium/drivers/r300/r300_swtcl_emit.c
+++ b/src/gallium/drivers/r300/r300_swtcl_emit.c
@@ -262,3 +262,26 @@ static struct vbuf_render* r300_swtcl_render_create(struct r300_context* r300)
return &r300render->base;
}
+
+struct draw_stage* r300_draw_swtcl_stage(struct r300_context* r300)
+{
+ struct vbuf_render* render;
+ struct draw_stage* stage;
+
+ render = r300_swtcl_render_create(r300);
+
+ if (!render) {
+ return NULL;
+ }
+
+ stage = draw_vbuf_stage(r300->draw, render);
+
+ if (!stage) {
+ render->destroy(render);
+ return NULL;
+ }
+
+ draw_set_render(r300->draw, render);
+
+ return stage;
+}