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
/
kgsl
/
kgsl_bo.c
diff --git
a/freedreno/kgsl/kgsl_bo.c
b/freedreno/kgsl/kgsl_bo.c
index
c868097
..
4e492dd
100644
(file)
--- a/
freedreno/kgsl/kgsl_bo.c
+++ b/
freedreno/kgsl/kgsl_bo.c
@@
-186,7
+186,7
@@
fd_bo_from_fbdev(struct fd_pipe *pipe, int fbfd, uint32_t size)
* thinks the buffer hasn't be allocate and fails
*/
if (bo) {
* thinks the buffer hasn't be allocate and fails
*/
if (bo) {
- void *fbmem = mmap(NULL, size, PROT_READ | PROT_WRITE,
+ void *fbmem =
drm_
mmap(NULL, size, PROT_READ | PROT_WRITE,
MAP_SHARED, fbfd, 0);
struct kgsl_map_user_mem req = {
.memtype = KGSL_USER_MEM_TYPE_ADDR,
MAP_SHARED, fbfd, 0);
struct kgsl_map_user_mem req = {
.memtype = KGSL_USER_MEM_TYPE_ADDR,