mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
nouveau: set imported buffers to what the kernel gives us
When we import a dma-buf fd from another driver the kernel gives us the right info, and this trashes it. Convert the kernel bo flags into the domain flags. This helps getting reverse prime and glamor working. Cc: mesa-stable@lists.freedesktop.org Acked-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
9dca3beb62
commit
c6877c9e59
1 changed files with 1 additions and 1 deletions
|
|
@ -419,7 +419,7 @@ nv50_miptree_from_handle(struct pipe_screen *pscreen,
|
|||
FREE(mt);
|
||||
return NULL;
|
||||
}
|
||||
mt->base.domain = NOUVEAU_BO_VRAM;
|
||||
mt->base.domain = mt->base.bo->flags & NOUVEAU_BO_APER;
|
||||
mt->base.address = mt->base.bo->offset;
|
||||
|
||||
mt->base.base = *templ;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue