mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
nvc0: fix dri3 prime buffer creation
We need to place shared buffers into GART. Reviewed-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
df282ce1bf
commit
13eddf3bf2
1 changed files with 1 additions and 1 deletions
|
|
@ -296,7 +296,7 @@ nvc0_miptree_create(struct pipe_screen *pscreen,
|
|||
}
|
||||
bo_config.nvc0.tile_mode = mt->level[0].tile_mode;
|
||||
|
||||
if (!bo_config.nvc0.memtype && pt->usage == PIPE_USAGE_STAGING)
|
||||
if (!bo_config.nvc0.memtype && (pt->usage == PIPE_USAGE_STAGING || pt->bind & PIPE_BIND_SHARED))
|
||||
mt->base.domain = NOUVEAU_BO_GART;
|
||||
else
|
||||
mt->base.domain = NOUVEAU_BO_VRAM;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue