mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
zink: don't use cached mem for staging resources
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9983>
This commit is contained in:
parent
7499f84956
commit
6ff6d01c37
1 changed files with 2 additions and 1 deletions
|
|
@ -437,7 +437,8 @@ resource_object_create(struct zink_screen *screen, const struct pipe_resource *t
|
|||
|
||||
if (templ->flags & PIPE_RESOURCE_FLAG_MAP_COHERENT)
|
||||
flags |= VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
|
||||
else if (!(flags & VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT))
|
||||
else if (!(flags & VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT) &&
|
||||
templ->usage != PIPE_USAGE_STAGING)
|
||||
flags |= VK_MEMORY_PROPERTY_HOST_CACHED_BIT;
|
||||
|
||||
VkMemoryAllocateInfo mai = {};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue