summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-30 15:11:50 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-30 15:11:50 +0200
commitff95ea5536d70f9bc8eac12f2c97dae71fb97066 (patch)
treef4a37b2d3eb79d80b59fedfe6b85b9d9f6e358a8 /libdrm
parent14a835be616183e733a2d6a7dcc697b8a6f46caf (diff)
Add missing map flags.
Diffstat (limited to 'libdrm')
-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;