diff options
Diffstat (limited to 'drivers/gpu/drm/drm_ioctl.c')
-rw-r--r-- | drivers/gpu/drm/drm_ioctl.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c index 07247e2855a2..dffc836144cc 100644 --- a/drivers/gpu/drm/drm_ioctl.c +++ b/drivers/gpu/drm/drm_ioctl.c | |||
@@ -303,6 +303,27 @@ int drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_priv) | |||
303 | } | 303 | } |
304 | 304 | ||
305 | /** | 305 | /** |
306 | * Set device/driver capabilities | ||
307 | */ | ||
308 | int | ||
309 | drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv) | ||
310 | { | ||
311 | struct drm_set_client_cap *req = data; | ||
312 | |||
313 | switch (req->capability) { | ||
314 | case DRM_CLIENT_CAP_STEREO_3D: | ||
315 | if (req->value > 1) | ||
316 | return -EINVAL; | ||
317 | file_priv->stereo_allowed = req->value; | ||
318 | break; | ||
319 | default: | ||
320 | return -EINVAL; | ||
321 | } | ||
322 | |||
323 | return 0; | ||
324 | } | ||
325 | |||
326 | /** | ||
306 | * Setversion ioctl. | 327 | * Setversion ioctl. |
307 | * | 328 | * |
308 | * \param inode device inode. | 329 | * \param inode device inode. |