summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-08-08 20:43:38 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2012-08-10 13:45:49 +0800
commit047c1375d6d08ac53839d0149dbbc03258f28d6a (patch)
treeae7736d08fb299bb7454a7fbb446a3f7b6307160
parent43cabf3f7c84e00d8480136d2ed5108d84ca392b (diff)
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 <zhigang.gong@linux.intel.com> Acked-by: Junyan <junyan.he@linux.intel.com>
-rw-r--r--src/glamor_fill.c1
-rw-r--r--src/glamor_priv.h2
2 files changed, 1 insertions, 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..6e80ebd 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 (64*1024)
typedef struct {
PicturePtr picture; /* Where the glyphs of the cache are stored */