From: Ilija Hadzic Subject: Re: [PATCH] libdrm: vblank wait on crtc > 1 Date: Sun, 20 Mar 2011 12:33:30 -0500 (CDT) Message-ID: References: Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-758783491-1300642410=:20979" Return-path: Received: from ihemail3.lucent.com (ihemail3.lucent.com [135.245.0.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 58C9D9E78D for ; Sun, 20 Mar 2011 10:33:33 -0700 (PDT) In-Reply-To: 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: Alex Deucher Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-758783491-1300642410=:20979 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sat, 19 Mar 2011, Alex Deucher wrote: > On Fri, Mar 18, 2011 at 5:58 PM, Ilija Hadzic > wrote: >> >> Hi Alex, >> >> Below is a patch against the master branch of libdrm that adds support f= or >> waits for vblank events on CRTCs that are greater than 1 (and thus canno= t be >> represented using current primary/secondary flags interface). The patch = adds >> a new DRM_CAP so that the application can check whether the new vblank >> interface is supported and also adds the new DRM_VBLANK mask and shift v= alue >> so that the application can construct vblank_wait ioctls that refer to c= rtc >>> 1 >> >> The issue was discussed on the dri-devel list in these two threads >> >> http://lists.freedesktop.org/archives/dri-devel/2011-March/009009.html >> http://lists.freedesktop.org/archives/dri-devel/2011-March/009025.html >> >> Regards, >> >> Ilija >> >> Reviewed-by: Mario Kleiner >> Acked-by: Mario Kleiner > > Reviewed-by: Alex Deucher > Tested-by: Alex Deucher > Signed-off-by: Ilija Hadzic >> >> >> diff --git a/include/drm/drm.h b/include/drm/drm.h >> index 416673a..10afaf1 100644 >> --- a/include/drm/drm.h >> +++ b/include/drm/drm.h >> @@ -755,6 +755,7 @@ struct drm_event_vblank { >> =A0}; >> >> =A0#define DRM_CAP_DUMB_BUFFER 0x1 >> +#define DRM_CAP_HIGH_CRTC =A0 0x2 >> >> =A0/* typedef area */ >> =A0typedef struct drm_clip_rect drm_clip_rect_t; >> diff --git a/xf86drm.h b/xf86drm.h >> index bf0d5df..e2bea06 100644 >> --- a/xf86drm.h >> +++ b/xf86drm.h >> @@ -302,6 +302,8 @@ typedef enum { >> =A0 =A0 DRM_VBLANK_SECONDARY =3D 0x20000000, /**< Secondary display cont= roller */ >> =A0 =A0 DRM_VBLANK_SIGNAL =A0 =3D 0x40000000 =A0 /* Send signal instead = of blocking */ >> =A0} drmVBlankSeqType; >> +#define DRM_VBLANK_HIGH_CRTC_SHIFT 16 >> +#define DRM_VBLANK_HIGH_CRTC_MASK 0x001F0000 >> >> =A0typedef struct _drmVBlankReq { >> =A0 =A0 =A0 =A0drmVBlankSeqType type; >> > ---559023410-758783491-1300642410=:20979 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel ---559023410-758783491-1300642410=:20979--