diff mbox

[15/22] drm/i915: Fix hiding the cursor with atomic ioctl

Message ID 1352741580-12141-16-git-send-email-ville.syrjala@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ville Syrjälä Nov. 12, 2012, 5:32 p.m. UTC
From: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>

intel_crtc->cursor_visible is only changed on the commit phase, so the
check for visibility was considering the previous state. Change this to
intel_crtc->cursor_handle instead.
---
 drivers/gpu/drm/i915/intel_atomic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c
index 98af0ae..c4cec40 100644
--- a/drivers/gpu/drm/i915/intel_atomic.c
+++ b/drivers/gpu/drm/i915/intel_atomic.c
@@ -1304,7 +1304,7 @@  static int check_crtc(struct intel_crtc_state *s)
 		}
 	}
 
-	if (intel_crtc->cursor_visible &&
+	if (intel_crtc->cursor_handle &&
 	    (intel_crtc->cursor_width != 64 ||
 	     intel_crtc->cursor_height != 64)) {
 		return -EINVAL;