<div dir="ltr"><div><div>Except for a few minor nits on patches 1 2, 6, 10, 18, 20, and 21, this looks good.<br><br></div>With those fixed,<br><br></div>Reviewed-by: Laura Ekstrand <<a href="mailto:laura@jlekstrand.net">laura@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 4:18 PM, Fredrik Höglund <span dir="ltr"><<a href="mailto:fredrik@kde.org" target="_blank">fredrik@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This series implements the VAO portion of GL_ARB_direct_state_access.<br>
<br>
I started working on this before the decision was made to only expose<br>
the extension in the core profile, so this series implements both the<br>
core and compatibility behavior.  The compatibility support actually<br>
only amounts to a couple of lines of code in _mesa_lookup_vao_err().<br>
Everything else was already implemented in the now refactored selector-<br>
based entry points.<br>
<br>
There are a couple of things worth noting. The first is that<br>
VertexArrayElementBuffer requires that the buffer object exists, while<br>
VertexArrayVertexBuffer only requires that the ID has been returned by<br>
GenBuffers or CreateBuffers.  I'm not sure if this is a mistake or not,<br>
because the specfication really is quite explicit about it.  The second<br>
is that the specification can't agree with itself about which parameters<br>
GetVertexArrayIndexediv accepts.  See the comments in patch 21 for the<br>
details.  I made the interpretation that the intent is that it should<br>
be possible to query all states that can be set with a DSA function.<br>
The new piglit tests also depend on this.<br>
<br>
This series is also available at:<br>
<br>
git://<a href="http://people.freedesktop.org/~fredrik/mesa" target="_blank">people.freedesktop.org/~fredrik/mesa</a> arb-direct-state-access<br>
<br>
I plan on posting the piglit tests shortly.<br>
<br>
Fredrik Höglund (22):<br>
      mesa: Implement CreateVertexArrays<br>
      mesa: Add _mesa_lookup_vao_err<br>
      mesa: Keep track of the last looked-up VAO<br>
      mesa: Implement DisableVertexArrayAttrib<br>
      mesa: Implement EnableVertexArrayAttrib<br>
      mesa: Implement VertexArrayElementBuffer<br>
      mesa: Add a vao parameter to bind_vertex_buffer<br>
      mesa: Implement VertexArrayVertexBuffer<br>
      mesa: Implement VertexArrayVertexBuffers<br>
      mesa: Refactor VertexAttrib[I|L]Format<br>
      mesa: Add a vao parameter to update_array_format<br>
      mesa: Implement VertexArrayAttrib[I|L]Format<br>
      mesa: Add a vao parameter to vertex_attrib_binding<br>
      mesa: Implement VertexArrayAttribBinding<br>
      mesa: Add a vao parameter to vertex_binding_divisor<br>
      mesa: Implement VertexArrayBindingDivisor<br>
      mesa: Implement GetVertexArrayiv<br>
      mesa: Add a vao parameter to get_vertex_array_attrib<br>
      mesa: Add a Doubles field in gl_vertex_attrib_array<br>
      mesa: Add support for quering GL_VERTEX_ATTRIB_ARRAY_LONG<br>
      mesa: Implement GetVertexArrayIndexed[64]iv<br>
      docs: Update the ARB_direct_state_access status<br>
<br>
 docs/GL3.txt                                   |   2 +-<br>
 src/mapi/glapi/gen/ARB_direct_state_access.xml |  96 +++<br>
 src/mesa/main/arrayobj.c                       | 151 +++-<br>
 src/mesa/main/arrayobj.h                       |   9 +<br>
 src/mesa/main/mtypes.h                         |   5 +<br>
 src/mesa/main/tests/dispatch_sanity.cpp        |  14 +<br>
 src/mesa/main/varray.c                         | 757 ++++++++++++++------<br>
 src/mesa/main/varray.h                         |  49 ++<br>
 8 files changed, 876 insertions(+), 207 deletions(-)<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div><br></div>