@@ -9427,7 +9427,13 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
work->gtt_offset =
i915_gem_obj_ggtt_offset(obj) + intel_crtc->dspaddr_offset;
- ret = dev_priv->display.queue_flip(dev, crtc, fb, obj, ring, page_flip_flags);
+ if (intel_use_mmio_flip(dev))
+ ret = intel_queue_mmio_flip(dev, crtc,
+ fb, obj, ring, page_flip_flags);
+ else
+ ret = dev_priv->display.queue_flip(dev, crtc,
+ fb, obj, ring, page_flip_flags);
+
if (ret)
goto cleanup_unpin;
@@ -11652,9 +11658,6 @@ static void intel_init_display(struct drm_device *dev)
break;
}
- if (intel_use_mmio_flip(dev))
- dev_priv->display.queue_flip = intel_queue_mmio_flip;
-
intel_panel_init_backlight_funcs(dev);
}