st/mesa: check shader image format support before using PBO download
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 5 Jun 2016 22:56:12 +0000 (18:56 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 6 Jun 2016 16:05:59 +0000 (12:05 -0400)
commit4f1cccf570112f93265a4cace504eb763fa8f73e
tree02f70fa56af7bb0a4517c617733e2fec17d29c23
parent4163c71010479524d8c9010a78454c584ddd8629
st/mesa: check shader image format support before using PBO download

ARB_shader_image_load_store only requires a very fixed list of formats
to be supported, while textures may be in all kinds of formats, like
BGRA which are presently not supported on at least Kepler.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_readpixels.c