aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2009-09-17 20:06:47 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-17 20:06:47 -0400
commitedb81956422c9926553bb97e3e56b849da0f4bb5 (patch)
treeb8592223d0c9523ec3ab164e22f1fdcb6653686a /drivers/gpu
parent7121413f2accf14cf05b38539fb7a8be77543370 (diff)
drm/i915: correct FBC update when pipe base update occurs
We usually don't have an SAREA, and we always want to update the FBC status anyway, so move the update up above the various master/sarea checks. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 44234150e842..cb0f4f96439e 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1260,6 +1260,9 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
1260 I915_READ(dspbase); 1260 I915_READ(dspbase);
1261 } 1261 }
1262 1262
1263 if (I915_HAS_FBC(dev) && (IS_I965G(dev) || plane == 0))
1264 intel_update_fbc(crtc, &crtc->mode);
1265
1263 intel_wait_for_vblank(dev); 1266 intel_wait_for_vblank(dev);
1264 1267
1265 if (old_fb) { 1268 if (old_fb) {
@@ -1286,9 +1289,6 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
1286 master_priv->sarea_priv->pipeA_y = y; 1289 master_priv->sarea_priv->pipeA_y = y;
1287 } 1290 }
1288 1291
1289 if (I915_HAS_FBC(dev) && (IS_I965G(dev) || plane == 0))
1290 intel_update_fbc(crtc, &crtc->mode);
1291
1292 return 0; 1292 return 0;
1293} 1293}
1294 1294