dri/nouveau: Have a smaller amount of larger scratch buffers.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 28 Sep 2010 20:20:12 +0000 (22:20 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 30 Sep 2010 14:46:46 +0000 (16:46 +0200)
Larger VBOs avoid many kernel trips to get them in sync with the GPU.

src/mesa/drivers/dri/nouveau/nouveau_render.h

index 923b79b2cf6badec42b48473e7502c994b0179b4..29d96eda77c854098c7fa83b58be5b46efd58a60 100644 (file)
@@ -55,8 +55,8 @@ struct nouveau_array_state {
        extract_f_t extract_f;
 };
 
-#define RENDER_SCRATCH_COUNT 32
-#define RENDER_SCRATCH_SIZE 64*1024
+#define RENDER_SCRATCH_COUNT 2
+#define RENDER_SCRATCH_SIZE 2*1024*1024
 
 struct nouveau_scratch_state {
        struct nouveau_bo *bo[RENDER_SCRATCH_COUNT];