st/mesa: align cube map arrays layers
authorDave Airlie <airlied@redhat.com>
Wed, 8 Apr 2015 00:00:27 +0000 (10:00 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 13 Apr 2015 22:04:41 +0000 (08:04 +1000)
commitcc5860e40787b3afe36856674f028e830685271b
tree0424ae9decd5d372e46b963bb132c77964568c7b
parent5ed79312ed99f3b141c35569b9767f82f5ba0a93
st/mesa: align cube map arrays layers

We create textures internally for texsubimage, and we use
the values from sub image to create a new texture, however
we don't align these to valid sizes, and cube map arrays
must have an array size aligned to 6.

This fixes texsubimage cube_map_array on CAYMAN at least,
(it was causing  GPU hang and bad values), it probably
also fixes it on radeonsi and evergreen.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89957
Tested-by: Tom Stellard <thomas.stellard@amd.com>
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_texture.c