zink: track coherent resource objects

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9884>
This commit is contained in:
Mike Blumenkrantz 2021-02-25 12:33:11 -05:00
parent 4daef7ffe3
commit 1998e216b6
2 changed files with 2 additions and 0 deletions

View File

@ -411,6 +411,7 @@ resource_object_create(struct zink_screen *screen, const struct pipe_resource *t
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
} else
obj->host_visible = true;
obj->coherent = flags & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
VkExportMemoryAllocateInfo emai = {};
if (templ->bind & PIPE_BIND_SHARED) {

View File

@ -77,6 +77,7 @@ struct zink_resource_object {
void *map;
bool is_buffer;
bool host_visible;
bool coherent;
};
struct zink_resource {