r300g: increase the size of upload buffers
authorMarek Olšák <maraeo@gmail.com>
Sat, 25 Dec 2010 13:39:07 +0000 (14:39 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 25 Dec 2010 15:07:13 +0000 (16:07 +0100)
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_render.c

index 848020c8be2a7e1aa821293eaf69fdba9f6450a3..7ba8e710554087a2a59a119626f30c608e95a827 100644 (file)
@@ -470,14 +470,14 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
             goto fail;
 
     r300->upload_ib = u_upload_create(&r300->context,
-                                     32 * 1024, 16,
+                                     64 * 1024, 16,
                                      PIPE_BIND_INDEX_BUFFER);
 
     if (r300->upload_ib == NULL)
         goto fail;
 
     r300->upload_vb = u_upload_create(&r300->context,
-                                     128 * 1024, 16,
+                                     1024 * 1024, 16,
                                      PIPE_BIND_VERTEX_BUFFER);
     if (r300->upload_vb == NULL)
         goto fail;
index 3f514f4d1b738d6e50a1467d5458e0d802639ee6..2a363a3bc9e702f8c0d84c3ec3691b3e91f52a3b 100644 (file)
@@ -1068,8 +1068,7 @@ static struct vbuf_render* r300_render_create(struct r300_context* r300)
 
     r300render->r300 = r300;
 
-    /* XXX find real numbers plz */
-    r300render->base.max_vertex_buffer_bytes = 128 * 1024;
+    r300render->base.max_vertex_buffer_bytes = 1024 * 1024;
     r300render->base.max_indices = 16 * 1024;
 
     r300render->base.get_vertex_info = r300_render_get_vertex_info;