diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index a54e27612fc..d19ce10a88c 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -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 = {