summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_context.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-04-11 16:00:09 +0200
committerMarek Olšák <[email protected]>2012-04-24 01:39:22 +0200
commite54cc2c070b30dd9b14bf9aedf93138b660c867f (patch)
tree6f4799414e5bd43ed310bc6b9f352cd1a9ce888c /src/gallium/drivers/r300/r300_context.c
parentae799a4948ac1becb48568a274c2ada5d77aa07c (diff)
r300g: don't share u_upload_mgr with u_vbuf, create its own
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r--src/gallium/drivers/r300/r300_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index fd464f32afd..cb8cef15134 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -103,6 +103,8 @@ static void r300_destroy_context(struct pipe_context* context)
if (r300->vbuf_mgr)
u_vbuf_destroy(r300->vbuf_mgr);
+ u_upload_destroy(r300->uploader);
+
/* XXX: This function assumes r300->query_list was initialized */
r300_release_referenced_objects(r300);
@@ -440,6 +442,9 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
goto fail;
}
+ r300->uploader = u_upload_create(&r300->context, 256 * 1024, 16,
+ PIPE_BIND_INDEX_BUFFER);
+
r300->blitter = util_blitter_create(&r300->context);
if (r300->blitter == NULL)
goto fail;