aboutsummaryrefslogtreecommitdiff
path: root/shared-core/radeon_state.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-08-04 14:59:17 +1000
committerDave Airlie <airlied@redhat.com>2008-08-04 14:59:17 +1000
commitaa8e15f8b51e555e78cb93e279bad5843eea5391 (patch)
tree632c6044f1c0096ffc87c8f95bf1efd6819e9e2f /shared-core/radeon_state.c
parent29649ddedee6b07b922c99233b8afc7c3a1db66f (diff)
radeon: add userspace mm enable switch
Diffstat (limited to 'shared-core/radeon_state.c')
-rw-r--r--shared-core/radeon_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-core/radeon_state.c b/shared-core/radeon_state.c
index 00160fbf..ca10db4b 100644
--- a/shared-core/radeon_state.c
+++ b/shared-core/radeon_state.c
@@ -3182,6 +3182,9 @@ static int radeon_cp_setparam(struct drm_device *dev, void *data, struct drm_fil
case RADEON_SETPARAM_VBLANK_CRTC:
return radeon_vblank_crtc_set(dev, sp->value);
break;
+ case RADEON_SETPARAM_MM_INIT:
+ dev_priv->user_mm_enable = true;
+ return radeon_gem_mm_init(dev);
default:
DRM_DEBUG("Invalid parameter %d\n", sp->param);
return -EINVAL;