aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-06-03 19:23:51 -0400
committerDave Airlie <airlied@redhat.com>2015-06-03 19:23:51 -0400
commita8a50fce60e86f82e442bf84b8af20750b3d6105 (patch)
tree974c04f9f4f10275a8a9435113ea5b307d172bb6 /drivers/gpu/drm/i915/intel_pm.c
parent9b5edbf7a462b7c846e9d4675b9b72b7a4e84de9 (diff)
parentc65b99f046843d2455aa231747b5a07a999a9f3d (diff)
Merge tag 'v4.1-rc6' into drm-next
Linux 4.1-rc6 backmerge 4.1-rc6 as some of the later pull reqs are based on newer bases and I'd prefer to do the fixup myself.
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index c5914564939c..eadc15cddbeb 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -2068,22 +2068,20 @@ static void ilk_compute_wm_parameters(struct drm_crtc *crtc,
2068 p->pipe_htotal = intel_crtc->config->base.adjusted_mode.crtc_htotal; 2068 p->pipe_htotal = intel_crtc->config->base.adjusted_mode.crtc_htotal;
2069 p->pixel_rate = ilk_pipe_pixel_rate(dev, crtc); 2069 p->pixel_rate = ilk_pipe_pixel_rate(dev, crtc);
2070 2070
2071 if (crtc->primary->state->fb) { 2071 if (crtc->primary->state->fb)
2072 p->pri.enabled = true;
2073 p->pri.bytes_per_pixel = 2072 p->pri.bytes_per_pixel =
2074 crtc->primary->state->fb->bits_per_pixel / 8; 2073 crtc->primary->state->fb->bits_per_pixel / 8;
2075 } else { 2074 else
2076 p->pri.enabled = false; 2075 p->pri.bytes_per_pixel = 4;
2077 p->pri.bytes_per_pixel = 0; 2076
2078 } 2077 p->cur.bytes_per_pixel = 4;
2078 /*
2079 * TODO: for now, assume primary and cursor planes are always enabled.
2080 * Setting them to false makes the screen flicker.
2081 */
2082 p->pri.enabled = true;
2083 p->cur.enabled = true;
2079 2084
2080 if (crtc->cursor->state->fb) {
2081 p->cur.enabled = true;
2082 p->cur.bytes_per_pixel = 4;
2083 } else {
2084 p->cur.enabled = false;
2085 p->cur.bytes_per_pixel = 0;
2086 }
2087 p->pri.horiz_pixels = intel_crtc->config->pipe_src_w; 2085 p->pri.horiz_pixels = intel_crtc->config->pipe_src_w;
2088 p->cur.horiz_pixels = intel_crtc->base.cursor->state->crtc_w; 2086 p->cur.horiz_pixels = intel_crtc->base.cursor->state->crtc_w;
2089 2087