mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
zink: always add MUTABLE with EXTENDED_USAGE for image creation
this otherwise makes little sense Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19018>
This commit is contained in:
parent
f2d3826dac
commit
c128cbb5bb
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue