zink: Correct compiler issue with have_moltenvk member having been moved.

have_moltenvk was moved to a different location but code being protected in platform specific guard, so was unnoticed.

Fixes: 598dc3dca4 ("zink: use cached memory for all resources when possible")

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11129>
This commit is contained in:
Duncan Hopkins 2021-06-03 14:07:29 +01:00 committed by Marge Bot
parent 6add9b2753
commit 18e8ec5f37

View file

@ -973,7 +973,7 @@ buffer_transfer_map(struct zink_context *ctx, struct zink_resource *res, unsigne
// This is a known limitation of MoltenVK.
// See https://github.com/KhronosGroup/MoltenVK/blob/master/Docs/MoltenVK_Runtime_UserGuide.md#known-moltenvk-limitations
|| screen->have_moltenvk
|| screen->instance_info.have_MVK_moltenvk
#endif
) {
VkDeviceSize size = box->width;