mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 16:00:13 +01:00
nouveau: return the *actual* type of memory alloc'd to userspace
This commit is contained in:
parent
9e019df757
commit
c38ede0667
1 changed files with 1 additions and 0 deletions
|
|
@ -515,6 +515,7 @@ int nouveau_ioctl_mem_alloc(DRM_IOCTL_ARGS)
|
|||
if (!block)
|
||||
return DRM_ERR(ENOMEM);
|
||||
alloc.region_offset=block->start;
|
||||
alloc.flags=block->flags;
|
||||
|
||||
DRM_COPY_TO_USER_IOCTL((drm_nouveau_mem_alloc_t __user *) data, alloc, sizeof(alloc));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue