From: Mike Blumenkrantz Date: Wed, 19 Oct 2022 10:47:16 +0000 (-0400) Subject: zink: always add MUTABLE with EXTENDED_USAGE for image creation X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c128cbb5bb7c5f7f54fe189a6da16eca4f6b295b;p=platform%2Fupstream%2Fmesa.git zink: always add MUTABLE with EXTENDED_USAGE for image creation this otherwise makes little sense Part-of: --- diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 66fe35c..37ca941 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -415,7 +415,7 @@ get_image_usage(struct zink_screen *screen, VkImageCreateInfo *ici, const struct feats = UINT32_MAX; VkImageUsageFlags usage = get_image_usage_for_feats(screen, feats, templ, bind, &need_extended); if (need_extended) { - ici->flags |= VK_IMAGE_CREATE_EXTENDED_USAGE_BIT; + ici->flags |= VK_IMAGE_CREATE_EXTENDED_USAGE_BIT | VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT; feats = UINT32_MAX; usage = get_image_usage_for_feats(screen, feats, templ, bind, &need_extended); } @@ -556,7 +556,7 @@ retry: *success = false; return DRM_FORMAT_MOD_INVALID; } - ici->flags |= VK_IMAGE_CREATE_EXTENDED_USAGE_BIT; + ici->flags |= VK_IMAGE_CREATE_EXTENDED_USAGE_BIT | VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT; tried[0] = false; tried[1] = false; first = true;