mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-05 02:08:18 +02:00
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:
parent
00591f3a99
commit
1c20688dcc
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue