meta: Add infrastructure for saving/restoring the DrawBuffers state.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 2 May 2014 08:06:04 +0000 (01:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 6 May 2014 18:31:29 +0000 (11:31 -0700)
commitc1c1cf5f92f692c8894bd97e7139a0ec78648f29
tree1173822c8be307417255c7b61b26254e27c610b2
parente526ebf35c113d59eb0b860e492c1308d3862ee9
meta: Add infrastructure for saving/restoring the DrawBuffers state.

Sometimes we need to configure what draw buffers we render to, without
creating a new FBO.  This path will make that possible.

Cc: "10.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/common/meta.c
src/mesa/drivers/common/meta.h