diff options
author | Carl Worth | 2009-04-29 23:43:54 +0200 |
---|---|---|
committer | Eric Anholt | 2009-05-15 01:00:32 +0200 |
commit | 08d7b3d1edff84bd673d9e9ab36b5aa62e1ba903 (patch) | |
tree | 0dcbb40ceb39aafab750bb06e2cd165dd906f8d3 /drivers/gpu/drm/i915/i915_dma.c | |
parent | drm/i915: Set HDMI hot plug interrupt enable for only the output in question. (diff) | |
download | kernel-qcow2-linux-08d7b3d1edff84bd673d9e9ab36b5aa62e1ba903.tar.gz kernel-qcow2-linux-08d7b3d1edff84bd673d9e9ab36b5aa62e1ba903.tar.xz kernel-qcow2-linux-08d7b3d1edff84bd673d9e9ab36b5aa62e1ba903.zip |
drm/i915: Add new GET_PIPE_FROM_CRTC_ID ioctl.
This allows userlevel code to discover the pipe number corresponding
to a given CRTC ID. This is necessary for doing pipe-specific
operations such as waiting for vblank on a given CRTC. Failure to use
the right pipe mapping can result in GPU hangs, or at least failure
to actually sync to vblank.
Signed-off-by: Carl Worth <cworth@cworth.org>
[anholt: Style touchups from review]
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 3133f991968d..53d544552625 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1358,6 +1358,7 @@ struct drm_ioctl_desc i915_ioctls[] = { DRM_IOCTL_DEF(DRM_I915_GEM_SET_TILING, i915_gem_set_tiling, 0), DRM_IOCTL_DEF(DRM_I915_GEM_GET_TILING, i915_gem_get_tiling, 0), DRM_IOCTL_DEF(DRM_I915_GEM_GET_APERTURE, i915_gem_get_aperture_ioctl, 0), + DRM_IOCTL_DEF(DRM_I915_GET_PIPE_FROM_CRTC_ID, intel_get_pipe_from_crtc_id, 0), }; int i915_max_ioctl = DRM_ARRAY_SIZE(i915_ioctls); |