st/mesa: fix blit-based GetTexImage for 1D array textures
authorMarek Olšák <maraeo@gmail.com>
Wed, 13 Feb 2013 21:32:03 +0000 (22:32 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 18 Feb 2013 16:57:41 +0000 (17:57 +0100)
commita6e0ac95716ca933558c70e45798ddc67e6ad5ad
tree21f8cd14d3c6273a72b74b86781abdb8dd09cef6
parent91acf6225a5e3f08388e6bff8f2c4213769120fe
st/mesa: fix blit-based GetTexImage for 1D array textures

This is not easy to hit, because we have 3 code paths now
(tried in this order):
- memcpy-based (skips the blit) -> _mesa_tex_getimage
- blit-based
- slow pixel packing -> _mesa_tex_getimage

The main difference later in the code is the parameters of
_mesa_image_address3d.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_cb_texture.c