OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4179c5f
)
nouveau: fix pin for buffers created with bo_wrap
author
Ben Skeggs
<bskeggs@redhat.com>
Thu, 9 Jul 2009 01:41:47 +0000
(11:41 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Thu, 9 Jul 2009 01:41:47 +0000
(11:41 +1000)
libdrm/nouveau/nouveau_bo.c
patch
|
blob
|
history
diff --git
a/libdrm/nouveau/nouveau_bo.c
b/libdrm/nouveau/nouveau_bo.c
index
e68533b
..
fea3a7d
100644
(file)
--- a/
libdrm/nouveau/nouveau_bo.c
+++ b/
libdrm/nouveau/nouveau_bo.c
@@
-752,11
+752,13
@@
nouveau_bo_pin(struct nouveau_bo *bo, uint32_t flags)
return nouveau_bo_pin_nomm(bo, flags);
/* Ensure we have a kernel object... */
- if (!nvbo->
handle
) {
+ if (!nvbo->
flags
) {
if (!(flags & (NOUVEAU_BO_VRAM | NOUVEAU_BO_GART)))
return -EINVAL;
nvbo->flags = flags;
+ }
+ if (!nvbo->handle) {
ret = nouveau_bo_kalloc(nvbo, NULL);
if (ret)
return ret;