mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 00:10:40 +02:00
asahi: Add PIPE_BIND_SHARED to imported resources
Signed-off-by: Asahi Lina <lina@asahilina.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32081>
This commit is contained in:
parent
59501af723
commit
f28a1b3fcf
1 changed files with 2 additions and 0 deletions
|
|
@ -197,6 +197,8 @@ agx_resource_from_handle(struct pipe_screen *pscreen,
|
|||
pipe_reference_init(&prsc->reference, 1);
|
||||
prsc->screen = pscreen;
|
||||
|
||||
prsc->bind |= PIPE_BIND_SHARED;
|
||||
|
||||
rsc->bo = agx_bo_import(dev, whandle->handle);
|
||||
/* Sometimes an import can fail e.g. on an invalid buffer fd, out of
|
||||
* memory space to mmap it etc.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue