glamor: Use buffer_storage
authorEric Anholt <eric@anholt.net>
Wed, 26 Feb 2014 00:56:54 +0000 (16:56 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 10 Mar 2014 20:57:21 +0000 (13:57 -0700)
commit2843a2f9b58a4aae2949111722c5c1bf3878674b
tree2e2184a1592131cb0d4a569f38d7e89e5d12e256
parent9b86f7a1ab7904fbbe04283b6461a31470c77972
glamor: Use buffer_storage

v2:
  - Make the default buffer size a #define. (by Markus Wick)
  - Fix the return offset for mapping with buffer_storage.  (oops!)
v3:
  - Avoid GL error at first rendering from unmapping no buffer.
  - Rebase on the glBindBuffer(GL_ARRAY_BUFFER, 0) change.
v4: Rebase on Markus's vbo init changes.
v5: Fix missing put_context() in the buffer_storage fallback path.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Markus Wick <markus at selfnet.de>
glamor/glamor.c
glamor/glamor_priv.h
glamor/glamor_vbo.c