[PATCH 2/9] glamor: Don't forget to set GL_INVALIDATE_RANGE_BIT on GL_ARB_mbr.

Eric Anholt eric at anholt.net
Sat Mar 8 20:07:03 PST 2014


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 <eric at anholt.net>
---
 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 f8d103d..98343c3 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;
     }
-- 
1.9.0



More information about the xorg-devel mailing list