meta: Fix the y offset for 1D_ARRAY in _mesa_meta_pbo_TexSubImage
authorNeil Roberts <neil@linux.intel.com>
Wed, 25 Feb 2015 15:33:08 +0000 (15:33 +0000)
committerNeil Roberts <neil@linux.intel.com>
Thu, 5 Mar 2015 13:24:53 +0000 (13:24 +0000)
commit7286a6899176a8b26aa794097288eff941f5178c
tree78a4899170410ed90fb021c18a37a7f6726a9d91
parenta08bff1e98b8e630f8bdf341af1491cd99e7d104
meta: Fix the y offset for 1D_ARRAY in _mesa_meta_pbo_TexSubImage

The yoffset needs to be interpreted as a slice offset for 1D array
textures. This patch implements that by moving the yoffset into
zoffset similar to how it moves the height into depth.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Cc: "10.5" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/common/meta_tex_subimage.c