All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Treat resetting of the current framebuffer as a no-op
@ 2013-05-23 12:57 Chris Wilson
  2013-05-23 21:27 ` Daniel Vetter
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Wilson @ 2013-05-23 12:57 UTC (permalink / raw)
  To: intel-gfx

If none of the CRTC parameters change along with the framebuffer, we can
forgo rewriting the register and waiting for a vblank. There are a few
calls made by the display managers as they start up which tend to end up
performing no-ops on the current CRTC settings.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/intel_display.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 981549c..f4450f1 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -2286,6 +2286,11 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
 		return -EINVAL;
 	}
 
+	if (fb == crtc->fb && crtc->x == x && crtc->y == y) {
+		DRM_DEBUG_KMS("skipping reset of current fb");
+		return 0;
+	}
+
 	mutex_lock(&dev->struct_mutex);
 	ret = intel_pin_and_fence_fb_obj(dev,
 					 to_intel_framebuffer(fb)->obj,
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-06-04 14:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 12:57 [PATCH] drm/i915: Treat resetting of the current framebuffer as a no-op Chris Wilson
2013-05-23 21:27 ` Daniel Vetter
2013-05-31 14:05   ` Paulo Zanoni
2013-05-31 15:15     ` Daniel Vetter
2013-05-31 15:19       ` Paulo Zanoni
2013-05-31 16:32       ` Ville Syrjälä
2013-05-31 17:50       ` Chris Wilson
2013-05-31 18:55         ` Daniel Vetter
2013-06-04 14:08     ` [PATCH] drm/i915: Always disable trickle feed on Broadwater/Crestline Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.