Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318688
b: refs/heads/master
c: 2993555
h: refs/heads/master
v: v3
  • Loading branch information
Laurent Pinchart authored and Dave Airlie committed Jul 17, 2012
1 parent d905ecb commit ffb7ba3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: faadaf97e5314d7463e7a815445d2f9166934ad4
refs/heads/master: 29935554b384b1b3a7377d6f0b03b21d18a61683
5 changes: 4 additions & 1 deletion trunk/drivers/gpu/drm/drm_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,6 @@ EXPORT_SYMBOL(drm_vblank_off);
* drm_vblank_pre_modeset - account for vblanks across mode sets
* @dev: DRM device
* @crtc: CRTC in question
* @post: post or pre mode set?
*
* Account for vblank events across mode setting events, which will likely
* reset the hardware frame counter.
Expand Down Expand Up @@ -1037,6 +1036,10 @@ int drm_modeset_ctl(struct drm_device *dev, void *data,
if (!dev->num_crtcs)
return 0;

/* KMS drivers handle this internally */
if (drm_core_check_feature(dev, DRIVER_MODESET))
return 0;

crtc = modeset->crtc;
if (crtc >= dev->num_crtcs)
return -EINVAL;
Expand Down

0 comments on commit ffb7ba3

Please sign in to comment.