mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 19:30:11 +01:00
Add missing map flags.
This commit is contained in:
parent
14a835be61
commit
ff95ea5536
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue