main: Refactor DrawBuffers.
authorLaura Ekstrand <laura@jlekstrand.net>
Mon, 9 Feb 2015 21:33:13 +0000 (13:33 -0800)
committerFredrik Höglund <fredrik@kde.org>
Thu, 14 May 2015 13:48:15 +0000 (15:48 +0200)
commit68c6964b376df7ef2248fab83e0f8abc6df56d47
treec7a00c28e20075454bb59d923fd087ba4baa717f
parent1f0a5f32d328e54483dd623ad09bd3f6b119f7a6
main: Refactor DrawBuffers.

This could have added a new DD table entry for DrawBuffers that takes an
arbitrary draw 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 DrawBuffer(s)
have limited functionality, especially with respect to
ARB_direct_state_access.

[Fredrik: Call the driver function when fb is the bound draw 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