st/mesa: fix CopyTexSubImage fallback for 1D array textures
authorMarek Olšák <maraeo@gmail.com>
Thu, 20 Dec 2012 14:15:15 +0000 (15:15 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 4 Jan 2013 13:06:28 +0000 (14:06 +0100)
commited86809ac9fe47c07be13ff0b998137f5f687635
treec933882ac3943f984b54cc50dfda1a1ca0beff7e
parent85cb4f299d8a0a0ebc8fe14d0ccd327375eda99e
st/mesa: fix CopyTexSubImage fallback for 1D array textures

- We should use a 3D transfer of size Width x 1 x NumLayers.
- We should use layer_stride instead of stride.
  (even though they are likely to be equal with 1D array textures)

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