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:
parent
4daef7ffe3
commit
1998e216b6
|
@ -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) {
|
||||
|
|
|
@ -77,6 +77,7 @@ struct zink_resource_object {
|
|||
void *map;
|
||||
bool is_buffer;
|
||||
bool host_visible;
|
||||
bool coherent;
|
||||
};
|
||||
|
||||
struct zink_resource {
|
||||
|
|
Loading…
Reference in New Issue