drm/i915: Initialise g4x watermarks for disabled pipes
[sfrench/cifs-2.6.git] / drivers / gpu / drm / i915 / intel_display.c
index 4fc21e047a2d43d8ba76eb57f38d242240a2d0df..e522c702b04e6387a07ae07f5917fb81835705ac 100644 (file)
@@ -3771,8 +3771,11 @@ static bool g4x_compute_wm0(struct drm_device *dev,
        int entries, tlb_miss;
 
        crtc = intel_get_crtc_for_plane(dev, plane);
-       if (crtc->fb == NULL || !crtc->enabled)
+       if (crtc->fb == NULL || !crtc->enabled) {
+               *cursor_wm = cursor->guard_size;
+               *plane_wm = display->guard_size;
                return false;
+       }
 
        htotal = crtc->mode.htotal;
        hdisplay = crtc->mode.hdisplay;