RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-14 Thread Mario Kleiner
> > Message: 2 > Date: Thu, 14 Jun 2012 17:19:11 + (UTC) > From: Joakim Plate > Subject: Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC > To: dri-devel at lists.freedesktop.org > Message-ID: > Content-Type: text/plain; charset=us-ascii > > >>&g

RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-14 Thread Joakim Plate
> > > > From what I can tell, it should be using: ktime_to_ns(ktime_get()) / 1000. Only > > issue is that changing it will break any app relying on it being REALTIME clock. > > > > App that rely on it being anything special are badly broken and i > don't think there is any such app. The specifi

RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-14 Thread Jerome Glisse
On Thu, Jun 14, 2012 at 2:17 PM, Jerome Glisse wrote: > On Thu, Jun 14, 2012 at 1:19 PM, Joakim Plate wrote: >> >>> > >>> > From what I can tell, it should be using: ktime_to_ns(ktime_get()) / 1000. >> Only >>> > issue is that changing it will break any app relying on it being REALTIME >> clock.

RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-14 Thread Jerome Glisse
On Thu, Jun 14, 2012 at 1:19 PM, Joakim Plate wrote: > >> > >> > From what I can tell, it should be using: ktime_to_ns(ktime_get()) / 1000. > Only >> > issue is that changing it will break any app relying on it being REALTIME > clock. >> > >> >> App that rely on it being anything special are badly

Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-14 Thread Mario Kleiner
> > Message: 2 > Date: Thu, 14 Jun 2012 17:19:11 + (UTC) > From: Joakim Plate > Subject: Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC > To: dri-devel@lists.freedesktop.org > Message-ID: > Content-Type: text/plain; charset=us-ascii > > >>>

Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-14 Thread Jerome Glisse
On Thu, Jun 14, 2012 at 2:17 PM, Jerome Glisse wrote: > On Thu, Jun 14, 2012 at 1:19 PM, Joakim Plate wrote: >> >>> > >>> > From what I can tell, it should be using: ktime_to_ns(ktime_get()) / 1000. >> Only >>> > issue is that changing it will break any app relying on it being REALTIME >> clock.

Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-14 Thread Jerome Glisse
On Thu, Jun 14, 2012 at 1:19 PM, Joakim Plate wrote: > >> > >> > From what I can tell, it should be using: ktime_to_ns(ktime_get()) / 1000. > Only >> > issue is that changing it will break any app relying on it being REALTIME > clock. >> > >> >> App that rely on it being anything special are badly

Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-14 Thread Joakim Plate
> > > > From what I can tell, it should be using: ktime_to_ns(ktime_get()) / 1000. Only > > issue is that changing it will break any app relying on it being REALTIME clock. > > > > App that rely on it being anything special are badly broken and i > don't think there is any such app. The specifi

RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-13 Thread Joakim Plate
Michel D?nzer daenzer.net> writes: > > > > > > From the GLX_OML_sync_control spec: > > > > > > The Unadjusted System Time (or UST) is a 64-bit monotonically > > > increasing counter [...] > > >

RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-13 Thread Jerome Glisse
On Wed, Jun 13, 2012 at 4:11 PM, Joakim Plate wrote: > Michel D?nzer daenzer.net> writes: > >> > > >> > > ?From the GLX_OML_sync_control spec: >> > > >> > > ? ? ? ? ?The Unadjusted System Time (or UST) is a 64-bit monotonically >> > > ? ? ? ? ?increasing counter [...] >> > > > > From what I can t

Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-13 Thread Jerome Glisse
On Wed, Jun 13, 2012 at 4:11 PM, Joakim Plate wrote: > Michel Dänzer daenzer.net> writes: > >> > > >> > >  From the GLX_OML_sync_control spec: >> > > >> > >          The Unadjusted System Time (or UST) is a 64-bit monotonically >> > >          increasing counter [...] >> > > > > From what I can t

Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-13 Thread Joakim Plate
Michel Dänzer daenzer.net> writes: > > > > > > From the GLX_OML_sync_control spec: > > > > > > The Unadjusted System Time (or UST) is a 64-bit monotonically > > > increasing counter [...] > > > From what I can tell, it should be using: ktime_to_ns(ktime_get()) / 1000. Only is

RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-13 Thread Julien Cristau
On Tue, Jun 12, 2012 at 20:04:03 -0700, Ian Romanick wrote: > Isn't CLOCK_MONOTONIC per-process? "This clock represents the monotonic clock for the system." (http://pubs.opengroup.org/onlinepubs/009604599/functions/clock_getres.html) So, no. Cheers, Julien

RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-13 Thread Michel Dänzer
On Die, 2012-06-12 at 20:04 -0700, Ian Romanick wrote: > On 06/11/2012 03:02 AM, Michel D?nzer wrote: > > On Son, 2012-06-10 at 11:56 +, Joakim Plate wrote: > >> Hi, > >> > >> I'm currently trying to make use of OML_sync_control extension to schedule > >> presentation of video frames in xbmc.

Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-13 Thread Julien Cristau
On Tue, Jun 12, 2012 at 20:04:03 -0700, Ian Romanick wrote: > Isn't CLOCK_MONOTONIC per-process? "This clock represents the monotonic clock for the system." (http://pubs.opengroup.org/onlinepubs/009604599/functions/clock_getres.html) So, no. Cheers, Julien ___

Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-13 Thread Michel Dänzer
On Die, 2012-06-12 at 20:04 -0700, Ian Romanick wrote: > On 06/11/2012 03:02 AM, Michel Dänzer wrote: > > On Son, 2012-06-10 at 11:56 +, Joakim Plate wrote: > >> Hi, > >> > >> I'm currently trying to make use of OML_sync_control extension to schedule > >> presentation of video frames in xbmc.

Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-12 Thread Ian Romanick
On 06/11/2012 03:02 AM, Michel Dänzer wrote: On Son, 2012-06-10 at 11:56 +, Joakim Plate wrote: Hi, I'm currently trying to make use of OML_sync_control extension to schedule presentation of video frames in xbmc. I've run into somewhat of a snag. It seem the spec doesn't specify what time

RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-12 Thread Ian Romanick
On 06/11/2012 03:02 AM, Michel D?nzer wrote: > On Son, 2012-06-10 at 11:56 +, Joakim Plate wrote: >> Hi, >> >> I'm currently trying to make use of OML_sync_control extension to schedule >> presentation of video frames in xbmc. >> >> I've run into somewhat of a snag. It seem the spec doesn't spe

RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-11 Thread Michel Dänzer
On Son, 2012-06-10 at 11:56 +, Joakim Plate wrote: > Hi, > > I'm currently trying to make use of OML_sync_control extension to schedule > presentation of video frames in xbmc. > > I've run into somewhat of a snag. It seem the spec doesn't specify what > time the UST clock really is, nor ca

Re: RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-11 Thread Michel Dänzer
On Son, 2012-06-10 at 11:56 +, Joakim Plate wrote: > Hi, > > I'm currently trying to make use of OML_sync_control extension to schedule > presentation of video frames in xbmc. > > I've run into somewhat of a snag. It seem the spec doesn't specify what > time the UST clock really is, nor ca

RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-10 Thread Joakim Plate
Hi, I'm currently trying to make use of OML_sync_control extension to schedule presentation of video frames in xbmc. I've run into somewhat of a snag. It seem the spec doesn't specify what time the UST clock really is, nor can i find any mention of it elsewhere in docs. Code wise it seem to be

RFC: Change OML_sync_control UST to CLOCK_MONOTONIC

2012-06-10 Thread Joakim Plate
Hi, I'm currently trying to make use of OML_sync_control extension to schedule presentation of video frames in xbmc. I've run into somewhat of a snag. It seem the spec doesn't specify what time the UST clock really is, nor can i find any mention of it elsewhere in docs. Code wise it seem to be