diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2014-06-05 17:38:23 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-06-09 13:50:58 -0400 |
commit | 18c2ff6245fd80fbc1b7f0b12ff17bf8b969d9fd (patch) | |
tree | 6971a24b17f56b89eab41dde513be3dae084d96d | |
parent | 387f6a6351855cc3f1b57582932608b7e7a96e9d (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.c | 2 |
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. |