summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_ioctl.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-07-23 05:50:00 +0400
committerDave Airlie <airlied@redhat.com>2013-08-30 03:25:13 +0400
commit62f2104f3fc11c4cfd1307429cb955bfa48dcb37 (patch)
treef5a4e80d68e100cc6818a6810d07f28135ddd8c5 /drivers/gpu/drm/drm_ioctl.c
parent9bba0c42ec81748462e58b18095c0eef8707cc9a (diff)
downloadlinux-62f2104f3fc11c4cfd1307429cb955bfa48dcb37.tar.xz
drm: Advertise async page flip ability through GETCAP ioctl
Let applications know whether the kernel supports asynchronous page flipping. Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/drm_ioctl.c')
-rw-r--r--drivers/gpu/drm/drm_ioctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c
index cffc7c0e1171..07247e2855a2 100644
--- a/drivers/gpu/drm/drm_ioctl.c
+++ b/drivers/gpu/drm/drm_ioctl.c
@@ -293,6 +293,9 @@ int drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_priv)
case DRM_CAP_TIMESTAMP_MONOTONIC:
req->value = drm_timestamp_monotonic;
break;
+ case DRM_CAP_ASYNC_PAGE_FLIP:
+ req->value = dev->mode_config.async_page_flip;
+ break;
default:
return -EINVAL;
}