st/mesa: convert sub image for cube map arrays to 2d arrays for upload
authorDave Airlie <airlied@redhat.com>
Wed, 8 Apr 2015 00:59:20 +0000 (10:59 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 13 Apr 2015 22:04:21 +0000 (08:04 +1000)
commit5ed79312ed99f3b141c35569b9767f82f5ba0a93
treeddfc37a3a86e2078223a9d5b66d13b46f6d23155
parent1e1d5456ba3dff82301ad4bbdde2fb6e2f562fe3
st/mesa: convert sub image for cube map arrays to 2d arrays for upload

Since we can subimage upload a number of cube map array layers,
that aren't a complete cube map array, we should specify things
as a 2D array and blit from that.

Suggested by Ilia Mirkin as an alternate fix for texsubimage
cube map array issues.

seems to work just as well.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_cb_texture.c