i965: Fix intel_miptree_copy_teximage for GL_TEXTURE_1D_ARRAY
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 30 Jan 2015 08:03:57 +0000 (09:03 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 2 Feb 2015 08:29:18 +0000 (09:29 +0100)
commit68155e5a3699271b27adbe52968a9d5f8c84b0e6
tree7938d00e8a092ec9291db381f43b63c0204b9c4f
parent753c327151ed7d23218879149950f0028b0e7b4d
i965: Fix intel_miptree_copy_teximage for GL_TEXTURE_1D_ARRAY

For GL_TEXTURE_1D_ARRAY targets we store the depth of the array
in the Height field and leave Depth=1 in the underlying texture
object. When we call intel_miptree_copy_teximage in the process
of re-creating a miptree (possibily because the number of miplevels
has changed) we didn't account for this, so we where only copying
texture images for the first slice.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c