public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH driver/intel] sna/cursor: Make sure hw cursors are disabled before disabling secondary planes
@ 2016-06-21 17:34 Egbert Eich
  2016-06-21 20:25 ` Chris Wilson
  2016-06-22 12:34 ` ✗ Ro.CI.BAT: failure for " Patchwork
  0 siblings, 2 replies; 4+ messages in thread
From: Egbert Eich @ 2016-06-21 17:34 UTC (permalink / raw)
  To: intel-gfx

When the hw cursors are not disabled before the cursor planes get disabled
we may lose the cursor later on. Thus make sure the cursors are disabled
before the cursor planes are.

Signed-off-by: Egbert Eich <eich@freedesktop.org>
---
 src/sna/sna_display.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index d790975..412c192 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -8081,6 +8081,9 @@ void sna_mode_check(struct sna *sna)
 	if (sna->mode.hidden)
 		return;
 
+        /* make sure the hw cursors are disabled before disabling
+	   the secondary planes which include the cursor plane */
+	sna_hide_cursors(sna->scrn);
 	disabled = sna_mode_disable_secondary_planes(sna);
 
 	/* Validate CRTC attachments and force consistency upon the kernel */
-- 
2.7.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2016-07-04 11:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-21 17:34 [PATCH driver/intel] sna/cursor: Make sure hw cursors are disabled before disabling secondary planes Egbert Eich
2016-06-21 20:25 ` Chris Wilson
2016-07-04 11:55   ` Egbert Eich
2016-06-22 12:34 ` ✗ Ro.CI.BAT: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox