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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user