main: Refactor _mesa_ReadBuffer.
authorLaura Ekstrand <laura@jlekstrand.net>
Fri, 6 Feb 2015 23:23:05 +0000 (15:23 -0800)
committerFredrik Höglund <fredrik@kde.org>
Thu, 14 May 2015 13:48:15 +0000 (15:48 +0200)
commit7518c6b5b2ae8b2a6e931d4be1d5976d553983a0
tree2ba39c63774a27fa76cf1ad8fc2f4b8d50803ee7
parent642fb71277b6e4c5d57ad7a7d6f2d5aae9b746ef
main: Refactor _mesa_ReadBuffer.

This could have added a new DD table entry for ReadBuffer that takes an
arbitrary read buffer, but, after looking at the existing DD functions,
Kenneth Graunke recommended that we just skip calling the DD functions in the
case of ARB_direct_state_access.  The DD implementations for ReadBuffer
have limited functionality, especially with respect to
ARB_direct_state_access.

[Fredrik: Call the driver function when fb is the bound read buffer]

Reviewed-by: Fredrik Höglund <fredrik@kde.org>
Signed-off-by: Fredrik Höglund <fredrik@kde.org>
src/mesa/main/buffers.c
src/mesa/main/buffers.h
src/mesa/main/context.c