summaryrefslogtreecommitdiff
path: root/libdrm/xf86drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdrm/xf86drm.c')
-rw-r--r--libdrm/xf86drm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index f592ff2a..6ffc4b39 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -2704,7 +2704,7 @@ int drmBOUnReference(int fd, drmBO *buf)
*
*/
-int drmBOMap(int fd, drmBO *buf, unsigned map_flags, void **address)
+int drmBOMap(int fd, drmBO *buf, unsigned mapFlags, void **address)
{
drm_bo_arg_t arg;
@@ -2731,7 +2731,7 @@ int drmBOMap(int fd, drmBO *buf, unsigned map_flags, void **address)
}
req->handle = buf->handle;
- req->mask = map_flags;
+ req->hint = mapFlags;
req->op = drm_bo_map;
req->next = 0;
@@ -2756,6 +2756,7 @@ int drmBOMap(int fd, drmBO *buf, unsigned map_flags, void **address)
if (rep->ret)
return rep->ret;
+ buf->mapFlags = mapFlags;
*address = buf->virtual;
return 0;