summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f799616)
raw | patch | inline | side by side (parent: f799616)
author | Dave Airlie <airlied@redhat.com> | |
Mon, 17 Aug 2009 11:21:02 +0000 (21:21 +1000) | ||
committer | Dave Airlie <airlied@redhat.com> | |
Mon, 17 Aug 2009 11:21:53 +0000 (21:21 +1000) |
libdrm/radeon/radeon_bo_gem.c | patch | blob | history |
index 3c3b3e5b55d6ac10150efbb1784271dc71cdba1c..cf59a359b653c570435c27851d8523653fcc434f 100644 (file)
return 0;
}
if (bo_gem->priv_ptr) {
- r = bo_wait(bo);
- bo->ptr = bo_gem->priv_ptr;
- if (r)
- return r;
- return 0;
+ goto wait;
}
bo->ptr = NULL;
if (ptr == MAP_FAILED)
return -errno;
bo_gem->priv_ptr = ptr;
+wait:
bo->ptr = bo_gem->priv_ptr;
- return r;
+ r = bo_wait(bo);
+ if (r)
+ return r;
+ return 0;
}
static int bo_unmap(struct radeon_bo *bo)