From: Thomas Hellstrom Subject: [PATCH 1/3] drm: Update the DRM_IOCTL_MODE_CURSOR documentation Date: Mon, 21 Nov 2011 13:08:36 +0100 Message-ID: <1321877318-10570-2-git-send-email-thellstrom@vmware.com> References: <1321877318-10570-1-git-send-email-thellstrom@vmware.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-outbound-2.vmware.com (smtp-outbound-2.vmware.com [65.115.85.73]) by gabe.freedesktop.org (Postfix) with ESMTP id B9F029FD76 for ; Mon, 21 Nov 2011 04:08:45 -0800 (PST) In-Reply-To: <1321877318-10570-1-git-send-email-thellstrom@vmware.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: airlied@gmail.com Cc: Thomas Hellstrom , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Document that DRM_IOCTL_MODE_CURSOR needs to be called in order to guarantee that the cursor bo contents is updated to the screen. This was agreed upon on the DRI mailing list. Signed-off-by: Thomas Hellstrom --- include/drm/drm_mode.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h index d30bedf..9006b93 100644 --- a/include/drm/drm_mode.h +++ b/include/drm/drm_mode.h @@ -291,6 +291,11 @@ struct drm_mode_mode_cmd { * crtc * x * y + * + * The DRM_IOCTL_MODE_CURSOR ioctl needs to be called with the CURSOR_BO flag + * in order to guarantee that the cursor image is updated. The implementation + * is free to either update the cursor image when the bo contents change, or + * when the DRM_IOCTL_MODE_CURSOR ioctl is called. */ struct drm_mode_cursor { __u32 flags; -- 1.7.4.4