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

Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Mike Blumenkrantz 2022-04-29 07:40:44 -04:00
parent d39eafe93d
commit 2920e0d843
2 changed files with 2 additions and 0 deletions

View file

@ -780,6 +780,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;