summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorBen Skeggs <darktama@iinet.net.au>2006-12-27 01:58:57 +1100
committerBen Skeggs <darktama@iinet.net.au>2006-12-27 01:58:57 +1100
commitc38ede06670b47620bbce33c5a4affd063769475 (patch)
treedc78fcdc9b3d85a368889c76f2a8133ae357a41c /shared-core
parent9e019df75764a7ce79266ceb058307336ddf00ef (diff)
nouveau: return the *actual* type of memory alloc'd to userspace
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_mem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared-core/nouveau_mem.c b/shared-core/nouveau_mem.c
index 82221c8f..4d4100eb 100644
--- a/shared-core/nouveau_mem.c
+++ b/shared-core/nouveau_mem.c
@@ -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));