[Glamor] [PATCH] Increase vbo size to 256K verts.

zhigang.gong at linux.intel.com zhigang.gong at linux.intel.com
Wed Aug 8 05:51:53 PDT 2012


From: Zhigang Gong <zhigang.gong at linux.intel.com>

Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
 src/glamor_fill.c | 1 -
 src/glamor_priv.h | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/glamor_fill.c b/src/glamor_fill.c
index 1d81aea..2f08d72 100644
--- a/src/glamor_fill.c
+++ b/src/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/src/glamor_priv.h b/src/glamor_priv.h
index 03ef6cc..5cdccf5 100644
--- a/src/glamor_priv.h
+++ b/src/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 (256*1024)
 
 typedef struct {
 	PicturePtr picture;	/* Where the glyphs of the cache are stored */
-- 
1.7.11.2



More information about the Glamor mailing list