Mesa's implementation of glBindBuffer() checks to see if the supplied
buffer name happens to be already bound. If so, it returns immediately,
skipping the hash table lookup (mapping the GLuint buffer handle to the
actual struct), the associated locking, and reference counting.
Glamor uses a singl
Kenneth Graunke writes:
> Mesa's implementation of glBindBuffer() checks to see if the supplied
> buffer name happens to be already bound. If so, it returns immediately,
> skipping the hash table lookup (mapping the GLuint buffer handle to the
> actual struct), the associated locking, and refere
Eric Anholt writes:
> I think this will break glamor_xv.c and Xephyr, but I'm definitely in
> favor of just making those explicitly bind their VBO state instead (or
> maybe just use the same VBO if we can).
I think we're going to rework a bunch of this code when we switch to
vertex arrays anyway
On Sunday, January 04, 2015 04:47:49 PM Keith Packard wrote:
> Eric Anholt writes:
>
> > I think this will break glamor_xv.c and Xephyr, but I'm definitely in
> > favor of just making those explicitly bind their VBO state instead (or
> > maybe just use the same VBO if we can).
>
> I think we're
Kenneth Graunke writes:
> That's true. I should probably just resurrect your Xephyr VAO patch, and
> extend it for the rest of Glamor as well.
Yeah, would be good as that's required for 3.0 core context
support. Note that most of the VAO work is actually in the Render
extension drawing code, an
Keith Packard writes:
> Kenneth Graunke writes:
>
>> That's true. I should probably just resurrect your Xephyr VAO patch, and
>> extend it for the rest of Glamor as well.
>
> Yeah, would be good as that's required for 3.0 core context
> support. Note that most of the VAO work is actually in the
Kenneth Graunke writes:
> Mesa's implementation of glBindBuffer() checks to see if the supplied
> buffer name happens to be already bound. If so, it returns immediately,
> skipping the hash table lookup (mapping the GLuint buffer handle to the
> actual struct), the associated locking, and refere