projects
/
platform
/
upstream
/
libdrm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
freedreno: use drm_mmap/drm_munmap wrappers
[platform/upstream/libdrm.git]
/
freedreno
/
freedreno_bo.c
diff --git
a/freedreno/freedreno_bo.c
b/freedreno/freedreno_bo.c
index
b90fc56
..
dacb34c
100644
(file)
--- a/
freedreno/freedreno_bo.c
+++ b/
freedreno/freedreno_bo.c
@@
-312,7
+312,7
@@
out:
static void bo_del(struct fd_bo *bo)
{
if (bo->map)
static void bo_del(struct fd_bo *bo)
{
if (bo->map)
- munmap(bo->map, bo->size);
+
drm_
munmap(bo->map, bo->size);
/* TODO probably bo's in bucket list get removed from
* handle table??
/* TODO probably bo's in bucket list get removed from
* handle table??
@@
-394,7
+394,7
@@
drm_public void * fd_bo_map(struct fd_bo *bo)
return NULL;
}
return NULL;
}
- bo->map = mmap(0, bo->size, PROT_READ | PROT_WRITE, MAP_SHARED,
+ bo->map =
drm_
mmap(0, bo->size, PROT_READ | PROT_WRITE, MAP_SHARED,
bo->dev->fd, offset);
if (bo->map == MAP_FAILED) {
ERROR_MSG("mmap failed: %s", strerror(errno));
bo->dev->fd, offset);
if (bo->map == MAP_FAILED) {
ERROR_MSG("mmap failed: %s", strerror(errno));