panfrost: Divide array_size by 6 for cubemaps
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 22 Jun 2019 00:27:05 +0000 (17:27 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 25 Jun 2019 20:39:17 +0000 (13:39 -0700)
Addresses the disparity between Mali and Gallium definitions of
array_size.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c

index a54e27612fce7a6442ba2f403fb9d7bf23d69366..d19ce10a88c3edd74e096763ca3b7294acb6d773 100644 (file)
@@ -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 = {