freedreno: tweak ringbuffer sizes/count
authorRob Clark <robclark@freedesktop.org>
Wed, 19 Feb 2014 17:02:57 +0000 (12:02 -0500)
committerRob Clark <robclark@freedesktop.org>
Wed, 19 Feb 2014 17:02:57 +0000 (12:02 -0500)
Since we are now consuming two ringbuffers at a time, we probably want a
pool larger than 4.. but we don't need each individual ringbuffer to be
so large, so offset the pool size increase by reducing rb size.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_context.c
src/gallium/drivers/freedreno/freedreno_context.h

index f0485d8175e95a00b08de83cfdd74bec96293fb6..5e2e7113b2f88eb9b3fb59de48e8df691eb3c258 100644 (file)
@@ -200,7 +200,7 @@ fd_context_init(struct fd_context *ctx, struct pipe_screen *pscreen,
        pctx->flush = fd_context_flush;
 
        for (i = 0; i < ARRAY_SIZE(ctx->rings); i++) {
-               ctx->rings[i] = fd_ringbuffer_new(screen->pipe, 0x400000);
+               ctx->rings[i] = fd_ringbuffer_new(screen->pipe, 0x100000);
                if (!ctx->rings[i])
                        goto fail;
        }
index ef83048545df5d11328a64e8374f0349ce681be1..7db1fd1fa0a366f7512ab1ce3c13cef14a41d500 100644 (file)
@@ -154,7 +154,7 @@ struct fd_context {
         * normally have to wait before resetting to the start of the next
         * rb.
         */
-       struct fd_ringbuffer *rings[4];
+       struct fd_ringbuffer *rings[8];
        unsigned rings_idx;
 
        /* normal draw/clear cmds: */