zink: add a flag to indicate whether a resource is exportable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16252>
This commit is contained in:
Mike Blumenkrantz 2022-04-29 07:40:44 -04:00 committed by Marge Bot
parent 00591f3a99
commit 1c20688dcc
2 changed files with 2 additions and 0 deletions

View file

@ -783,6 +783,7 @@ resource_object_create(struct zink_screen *screen, const struct pipe_resource *t
emai.pNext = mai.pNext;
mai.pNext = &emai;
obj->exportable = true;
}
#ifdef ZINK_USE_DMABUF

View file

@ -78,6 +78,7 @@ struct zink_resource_object {
bool transfer_dst;
bool render_target;
bool is_buffer;
bool exportable;
/* TODO: this should be a union */
struct zink_bo *bo;