Commit 83fb8b05 authored by Dave Airlie's avatar Dave Airlie

Merge tag 'drm-misc-fixes-2016-11-30' of git://anongit.freedesktop.org/git/drm-misc into drm-fixes

single drm fix.

* tag 'drm-misc-fixes-2016-11-30' of git://anongit.freedesktop.org/git/drm-misc:
  drm: Don't call drm_for_each_crtc with a non-KMS driver
parents b14fd8ef e94bd173
...@@ -254,10 +254,12 @@ static int drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_ ...@@ -254,10 +254,12 @@ static int drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_
req->value = dev->mode_config.async_page_flip; req->value = dev->mode_config.async_page_flip;
break; break;
case DRM_CAP_PAGE_FLIP_TARGET: case DRM_CAP_PAGE_FLIP_TARGET:
req->value = 1; if (drm_core_check_feature(dev, DRIVER_MODESET)) {
drm_for_each_crtc(crtc, dev) { req->value = 1;
if (!crtc->funcs->page_flip_target) drm_for_each_crtc(crtc, dev) {
req->value = 0; if (!crtc->funcs->page_flip_target)
req->value = 0;
}
} }
break; break;
case DRM_CAP_CURSOR_WIDTH: case DRM_CAP_CURSOR_WIDTH:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment