[PATCH 57/81] drm/i915: Fix hiding the cursor with atomic ioctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira at 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 --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;
-- 
1.7.8.6



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux