st/mesa: cache staging texture for glReadPixels
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 8 Jun 2016 11:24:14 +0000 (13:24 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 21 Jun 2016 09:02:41 +0000 (11:02 +0200)
commit3735a925ef5692c836c4d26d6adee370dae1c2b0
treeaa3f6c16245f34bab987305a454896ac566bf07c
parenta571859fc446a9ba106ba4586603b5a01e7cc52a
st/mesa: cache staging texture for glReadPixels

v2: add ST_DEBUG flag for disabling (suggested by Ilia)

Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v1)
src/mesa/state_tracker/st_cb_fbo.h
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_debug.c
src/mesa/state_tracker/st_debug.h