summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2014-06-05 17:38:23 +0200
committerAlex Deucher <alexander.deucher@amd.com>2014-06-09 13:50:58 -0400
commit18c2ff6245fd80fbc1b7f0b12ff17bf8b969d9fd (patch)
tree6971a24b17f56b89eab41dde513be3dae084d96d
parent387f6a6351855cc3f1b57582932608b7e7a96e9d (diff)
vbo: Raise VBO size
This reduces CPU overhead due to buffer orphaning, which results in a small overall performance improvement. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/glamor_vbo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glamor_vbo.c b/src/glamor_vbo.c
index 2cabca1..82f9ae4 100644
--- a/src/glamor_vbo.c
+++ b/src/glamor_vbo.c
@@ -54,7 +54,7 @@ glamor_get_vbo_space(ScreenPtr screen, int size, char **vbo_offset)
dispatch->glUnmapBuffer(GL_ARRAY_BUFFER);
if (size > glamor_priv->vbo_size) {
- glamor_priv->vbo_size = MAX(65536, size);
+ glamor_priv->vbo_size = MAX(256 * 1024, size);
/* We aren't allowed to resize glBufferStorage()
* buffers, so we need to gen a new one.