panfrost: Divide array_size by 6 for cubemaps

Addresses the disparity between Mali and Gallium definitions of
array_size.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig
2019-06-21 17:27:05 -07:00
parent 65bc56b568
commit eb3c09716b
@@ -2224,6 +2224,7 @@ panfrost_create_sampler_view(
if (texture->target == PIPE_TEXTURE_CUBE) {
/* TODO: Cubemap arrays */
assert(array_size == 6);
array_size /= 6;
}
struct mali_texture_descriptor texture_descriptor = {