[Mesa-dev] [PATCH 01/10] st/mesa: use bitshifting to define state flags

Mathias Fröhlich Mathias.Froehlich at gmx.net
Wed Apr 18 10:28:22 PDT 2012


Hi,

On Wednesday, April 18, 2012 10:41:56 Brian Paul wrote:
> Yes.  I actually started some work on that a while back but never got
> back to it.  I don't think there'd be any harm in moving the field so
> I'll go dig up that patch.
> 
> My goal was to explore having an st_array_object subclass of
> gl_array_object that would contain pipe_vertex_buffer and
> pipe_vertex_element state.  It would only have to be updated when that
> array object's state changed.
That's about what is lingering around here :)

> While not many apps use array objects yet, those that did could avoid
> some (most?) of the draw/array-releted state validation when they did:
> 
> create_array_objects();
> ...
> glBindVertexArray(1);
> glDrawArrays();
> glBindVertexArray(2);
> glDrawArrays();
> etc..
> 
> I started plumbing a gl_array_object pointer through the VBO code but
> never finished.
Wait, I have one small change that safes you from the first crash doing this 
kind of changes :)

Mathias


More information about the mesa-dev mailing list