projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df282ce
)
nvc0: fix dri3 prime buffer creation
author
Dave Airlie
<airlied@gmail.com>
Mon, 16 Jun 2014 05:39:02 +0000
(
05:39
+0000)
committer
Dave Airlie
<airlied@gmail.com>
Fri, 27 Jun 2014 03:38:14 +0000
(13:38 +1000)
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>
src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c
b/src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c
index 79c9390b78ffcc5160de320116e2f6df713bc584..2f3cba8b879976c9f0999d9059c944880ed6dfe9 100644
(file)
--- a/
src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c
+++ b/
src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c
@@
-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;