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 <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10824>
This commit is contained in:
Mike Blumenkrantz
2021-03-19 18:24:28 -04:00
committed by Marge Bot
parent b960169257
commit 6a67315d8a

View File

@@ -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 &&