if (r300->uploader)
u_upload_destroy(r300->uploader);
+ if (r300->context.stream_uploader)
+ u_upload_destroy(r300->context.stream_uploader);
/* XXX: This function assumes r300->query_list was initialized */
r300_release_referenced_objects(r300);
r300->context.create_video_codec = vl_create_decoder;
r300->context.create_video_buffer = vl_video_buffer_create;
- r300->uploader = u_upload_create(&r300->context, 1024 * 1024,
+ r300->uploader = u_upload_create(&r300->context, 128 * 1024,
PIPE_BIND_CUSTOM, PIPE_USAGE_STREAM, 0);
- r300->context.stream_uploader = r300->uploader;
- r300->context.const_uploader = r300->uploader;
+ r300->context.stream_uploader = u_upload_create(&r300->context, 1024 * 1024,
+ 0, PIPE_USAGE_STREAM, 0);
+ r300->context.const_uploader = r300->context.stream_uploader;
r300->blitter = util_blitter_create(&r300->context);
if (r300->blitter == NULL)