From e846f48f489e33e270db682b1b6c8e6f03fdf313 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Wed, 8 Aug 2012 20:43:38 +0800 Subject: [PATCH] Increase vbo size to 64K verts. This commit will benefit vertex stressing cases such as aa10text/rgb10text, and can get about 15% performance gain. Signed-off-by: Zhigang Gong Acked-by: Junyan --- glamor/glamor_fill.c | 1 - glamor/glamor_priv.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/glamor/glamor_fill.c b/glamor/glamor_fill.c index 1d81aea52..2f08d7275 100644 --- a/glamor/glamor_fill.c +++ b/glamor/glamor_fill.c @@ -220,7 +220,6 @@ _glamor_solid_boxes(PixmapPtr pixmap, BoxPtr box, int nbox, float *color) } } -#define GLAMOR_COMPOSITE_VBO_VERT_CNT 1024 if (unlikely(nbox > 1)) dispatch->glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, glamor_priv->ebo); diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h index 03ef6cce8..6e80ebdf9 100644 --- a/glamor/glamor_priv.h +++ b/glamor/glamor_priv.h @@ -191,7 +191,7 @@ enum glamor_gl_flavor { #define GLAMOR_NUM_GLYPH_CACHE_FORMATS 2 -#define GLAMOR_COMPOSITE_VBO_VERT_CNT 1024 +#define GLAMOR_COMPOSITE_VBO_VERT_CNT (64*1024) typedef struct { PicturePtr picture; /* Where the glyphs of the cache are stored */