From: Chris Wilson Subject: Re: [PATCH xf96-video-intel] DRI2GetMSC: Do not send a bogus ust when no drawable is not displayed Date: Fri, 29 Mar 2013 12:54:09 +0000 Message-ID: <20130329125409.GC14007@cantiga.alporthouse.com> References: <1364536477-7844-1-git-send-email-djkurtz@chromium.org> <20130329090725.GB14007@cantiga.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 3120CE5F21 for ; Fri, 29 Mar 2013 05:54:25 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: =?iso-8859-1?Q?St=E9phane?= Marchesin Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Mar 29, 2013 at 03:13:35AM -0700, St=E9phane Marchesin wrote: > On Fri, Mar 29, 2013 at 2:07 AM, Chris Wilson = wrote: > > On Fri, Mar 29, 2013 at 01:54:37PM +0800, Daniel Kurtz wrote: > >> According to the opengl glx_sync_control spec, the Unadjusted System T= ime > >> (or UST) is a 64-bit monotonically increasing counter that is available > >> throughout the system: > >> http://www.opengl.org/registry/specs/OML/glx_sync_control.txt > >> > >> Therefore, sending 0, even in this corner case, is out of spec. > >> Instead, just return FALSE indicating that the operation could not be > >> completed. > > > > The problem is that ends up sending BadDrawable back to the client, > > which ends up killing many clients and a compositor or two due to the > > unexpected error. > > > > Would you prefer querying pipe 0 in this case for the UST? > = > For us it comes down to the fact that we'd like something monotonous. > So yes querying pipe 0 could work if it's enabled. But I wonder what > do you do when you have no enabled pipe though? Return the last UST? That's a problem as we would need a running pipe, which is not guaranteed. I wonder if CLOCK_MONOTONIC would suffice? -Chris -- = Chris Wilson, Intel Open Source Technology Centre