zink: only check that CUBE_COMPATIBLE for images doesn't subtract flags

the flags may change if e.g., HOST_TRANSFER is enabled by adding CUBE

fixes #10924

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28460>
This commit is contained in:
Mike Blumenkrantz 2024-03-29 08:28:25 -04:00 committed by Marge Bot
parent 03938804f1
commit edeb3fec4d

View file

@ -672,7 +672,7 @@ retry:
}
if (want_cube) {
ici->flags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
if (get_image_usage(screen, ici, templ, bind, modifiers_count, modifiers, &mod) != ici->usage)
if ((get_image_usage(screen, ici, templ, bind, modifiers_count, modifiers, &mod) & ici->usage) != ici->usage)
ici->flags &= ~VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
}