mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
iris: Add BO_ALLOC_SHARED
Xe KMD requires special handling for exported buffers during creation. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22060>
This commit is contained in:
parent
4b0b75c27a
commit
41ddecc8b2
2 changed files with 4 additions and 0 deletions
|
|
@ -304,6 +304,7 @@ struct iris_bo {
|
|||
#define BO_ALLOC_NO_SUBALLOC (1<<4)
|
||||
#define BO_ALLOC_LMEM (1<<5)
|
||||
#define BO_ALLOC_PROTECTED (1<<6)
|
||||
#define BO_ALLOC_SHARED (1<<7)
|
||||
|
||||
/**
|
||||
* Allocate a buffer object.
|
||||
|
|
|
|||
|
|
@ -487,6 +487,9 @@ iris_resource_alloc_flags(const struct iris_screen *screen,
|
|||
if (templ->bind & PIPE_BIND_PROTECTED)
|
||||
flags |= BO_ALLOC_PROTECTED;
|
||||
|
||||
if (templ->bind & PIPE_BIND_SHARED)
|
||||
flags |= BO_ALLOC_SHARED;
|
||||
|
||||
return flags;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue