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:
committed by
Marge Bot
parent
7499f84956
commit
6ff6d01c37
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user