[cairo-commit] src/cairo-gl-private.h

Chris Wilson ickle at kemper.freedesktop.org
Thu Nov 1 02:51:53 PDT 2012

 src/cairo-gl-private.h |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 90860241bb8f8eff3c1ab40641b1bfca0798b238
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Nov 1 09:47:00 2012 +0000

    gl: Tune the default VBO size to reduce overhead on embedded devices
    Henry Song found that the 256k buffers were disadvantageous on his
    embedded hardware. As there is no obvious right value for the default
    VBO size, we can tune for the more obvious constraints.
    Based on a patch by Henry Song <henry.song at samsung.com>
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-gl-private.h b/src/cairo-gl-private.h
index d6b0554..7c97c49 100644
--- a/src/cairo-gl-private.h
+++ b/src/cairo-gl-private.h
@@ -91,8 +91,10 @@
  * Random number that is hopefully big enough to not cause many cache evictions. */
-/* VBO size that we allocate, smaller size means we gotta flush more often */
-#define CAIRO_GL_VBO_SIZE (256*1024)
+/* VBO size that we allocate, smaller size means we gotta flush more often,
+ * but larger means hogging more memory and can cause trouble for drivers
+ * (especially on embedded devices). */
+#define CAIRO_GL_VBO_SIZE (16*1024)
 typedef struct _cairo_gl_surface cairo_gl_surface_t;

More information about the cairo-commit mailing list