+ svga->pipe.stream_uploader = u_upload_create(&svga->pipe, 1024 * 1024,
+ PIPE_BIND_VERTEX_BUFFER |
+ PIPE_BIND_INDEX_BUFFER,
+ PIPE_USAGE_STREAM, 0);
+ if (!svga->pipe.stream_uploader)
+ goto cleanup;
+
+ u_upload_disable_persistent(svga->pipe.stream_uploader);
+
+ svga->pipe.const_uploader = u_upload_create(&svga->pipe, 128 * 1024,
+ PIPE_BIND_CONSTANT_BUFFER,
+ PIPE_USAGE_STREAM, 0);
+ if (!svga->pipe.const_uploader)
+ goto cleanup;
+
+ u_upload_disable_persistent(svga->pipe.const_uploader);