Re: [Mesa-dev] [PATCH] glx/dri3: Port LIBGL_SHOW_FPS=1 code from DRI2 to DRI3.

2014-10-28 Thread Keith Packard
Kenneth Graunke writes: > Is UST expressed in a particular unit? I thought it was just "monotonically > increasing" but otherwise meaningless. At which point, our FPS would be > "frames per...something?" :) UST in GL's extension is not defined, but Present uses microseconds. As this is all h

Re: [Mesa-dev] [PATCH] glx/dri3: Port LIBGL_SHOW_FPS=1 code from DRI2 to DRI3.

2014-10-28 Thread Kenneth Graunke
On Tuesday, October 28, 2014 11:12:40 AM Keith Packard wrote: > Kenneth Graunke writes: > > > The code is cut-and-pasted from dri2_glx.c; we can't quite share it > > because we have to use different structures. > > It might be fun to use the UST value provided in the > PRESENT_COMPLETE_NOTIFY ev

Re: [Mesa-dev] [PATCH] glx/dri3: Port LIBGL_SHOW_FPS=1 code from DRI2 to DRI3.

2014-10-28 Thread Keith Packard
Kenneth Graunke writes: > The code is cut-and-pasted from dri2_glx.c; we can't quite share it > because we have to use different structures. It might be fun to use the UST value provided in the PRESENT_COMPLETE_NOTIFY event instead of a local gettimeofday call? That way you'd get the presentatio

Re: [Mesa-dev] [PATCH] glx/dri3: Port LIBGL_SHOW_FPS=1 code from DRI2 to DRI3.

2014-10-28 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Tue, Oct 28, 2014 at 8:09 AM, Kenneth Graunke wrote: > The code is cut-and-pasted from dri2_glx.c; we can't quite share it > because we have to use different structures. > > Signed-off-by: Kenneth Graunke > Cc: Keith Packard > --- > src/glx/dri3_glx.c | 35

[Mesa-dev] [PATCH] glx/dri3: Port LIBGL_SHOW_FPS=1 code from DRI2 to DRI3.

2014-10-28 Thread Kenneth Graunke
The code is cut-and-pasted from dri2_glx.c; we can't quite share it because we have to use different structures. Signed-off-by: Kenneth Graunke Cc: Keith Packard --- src/glx/dri3_glx.c | 35 ++- src/glx/dri3_priv.h | 6 +- 2 files changed, 39 insertions(+),