[Mesa-dev] [PATCH 11/20] panfrost: Divide array_size by 6 for cubemaps
Alyssa Rosenzweig
alyssa.rosenzweig at collabora.com
Mon Jun 24 17:39:14 UTC 2019
Addresses the disparity between Mali and Gallium definitions of
array_size.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
src/gallium/drivers/panfrost/pan_context.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index e7d1d0a01df..c9d37f770ac 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -2091,6 +2091,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 = {
--
2.20.1
More information about the mesa-dev
mailing list