mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
zink: add a flag to indicate whether a resource is exportable
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
d39eafe93d
commit
2920e0d843
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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