aboutsummaryrefslogtreecommitdiff
path: root/shared-core/radeon_state.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-08-14 09:11:15 +1000
committerDave Airlie <airlied@redhat.com>2008-08-14 09:11:15 +1000
commitd59f41b8cf0634a433be7d11f6b473035060c5e1 (patch)
tree11be9818ef37310cb82f426a4fb42f31c3789d32 /shared-core/radeon_state.c
parent957c71ff52e93bb2c1bc01b99d29d763d0ef3899 (diff)
radeon: add userspace call for mm support check
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 e168ea02..01ee71f6 100644
--- a/shared-core/radeon_state.c
+++ b/shared-core/radeon_state.c
@@ -3121,6 +3121,9 @@ static int radeon_cp_getparam(struct drm_device *dev, void *data, struct drm_fil
/* BSD TODO */
value = 1;
break;
+ case RADEON_PARAM_KERNEL_MM:
+ value = !dev_priv->mm_disabled;
+ break;
default:
DRM_DEBUG( "Invalid parameter %d\n", param->param );
return -EINVAL;