From bce5ec4f411134114c6ee2715f293a2250ee8800 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 24 Dec 2013 12:14:04 -0800 Subject: [PATCH] glamor: Don't forget to set GL_INVALIDATE_RANGE_BIT on GL_ARB_mbr. We don't need any current contents of the buffer, and this allows an implementation to make a temporary BO for a streamed upload if it wants to. Signed-off-by: Eric Anholt Reviewed-by: Markus Wick --- glamor/glamor_render.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c index f8d103d66..98343c3cf 100644 --- a/glamor/glamor_render.c +++ b/glamor/glamor_render.c @@ -731,7 +731,8 @@ glamor_setup_composite_vbo(ScreenPtr screen, int n_verts) glamor_priv->vbo_offset, vert_size, GL_MAP_WRITE_BIT | - GL_MAP_UNSYNCHRONIZED_BIT); + GL_MAP_UNSYNCHRONIZED_BIT | + GL_MAP_INVALIDATE_RANGE_BIT); assert(glamor_priv->vb != NULL); glamor_priv->vb -= glamor_priv->vbo_offset; }