projects
/
platform
/
upstream
/
xf86-video-intel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0f31d8
)
sna: Discard GPU bo when failing to setup the shared pixmap
author
Chris Wilson
<chris@chris-wilson.co.uk>
Tue, 22 Oct 2013 14:02:53 +0000
(15:02 +0100)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Tue, 22 Oct 2013 14:19:12 +0000
(15:19 +0100)
If we fail to mmap the pixmap when preparing it for use with prime, be
sure to throw away the now lost priv->gpu_bo.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_accel.c
patch
|
blob
|
history
diff --git
a/src/sna/sna_accel.c
b/src/sna/sna_accel.c
index
31b4230
..
5446e10
100644
(file)
--- a/
src/sna/sna_accel.c
+++ b/
src/sna/sna_accel.c
@@
-1183,6
+1183,7
@@
sna_create_pixmap_shared(struct sna *sna, ScreenPtr screen,
pixmap->devPrivate.ptr =
kgem_bo_map__async(&sna->kgem, priv->gpu_bo);
if (pixmap->devPrivate.ptr == NULL) {
+ kgem_bo_destroy(&sna->kgem, priv->gpu_bo);
free(priv);
FreePixmap(pixmap);
return FALSE;