From 6a67315d8a60288e0cc7c8c92e8eb497e7250e8a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 19 Mar 2021 18:24:28 -0400 Subject: [PATCH] zink: don't multiply cube array image layers this whole thing seems broken, but this part in particular is super broken Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_resource.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 8cb062bc5d6..377393e9166 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -335,8 +335,7 @@ create_ici(struct zink_screen *screen, const struct pipe_resource *templ, unsign ici.samples = templ->nr_samples ? templ->nr_samples : VK_SAMPLE_COUNT_1_BIT; ici.tiling = bind & PIPE_BIND_LINEAR ? VK_IMAGE_TILING_LINEAR : VK_IMAGE_TILING_OPTIMAL; - if (templ->target == PIPE_TEXTURE_CUBE || - templ->target == PIPE_TEXTURE_CUBE_ARRAY) + if (templ->target == PIPE_TEXTURE_CUBE) ici.arrayLayers *= 6; if (templ->usage == PIPE_USAGE_STAGING &&