st/mesa: implement PBO downloads for ReadPixels
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 26 Apr 2016 18:19:28 +0000 (13:19 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 1 Jun 2016 20:37:51 +0000 (22:37 +0200)
commited0e9862c56d13381f0414b5a835fd31960edfe6
tree22e63b01c43ee3a6b09af1b6e4a77cf22f0b055d
parentf3b62d4c74414c002d25e65decb9d0bda41ab5b6
st/mesa: implement PBO downloads for ReadPixels

v2: require PIPE_CAP_SAMPLER_VIEW_TARGET; technically only needed for some of
    the texture targets, but all hardware that has shader images should also
    have this cap.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_pbo.c
src/mesa/state_tracker/st_pbo.h