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:
committed by
Marge Bot
parent
00591f3a99
commit
1c20688dcc
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user