[Mesa-dev] [PATCH 0/4] Update to GL_ARB_timer_query

Marek Olšák maraeo at gmail.com
Thu Jul 5 15:11:48 PDT 2012


Hi everyone,

this series is a follow-up to the previous one sent on June 27. Here's only what's changed. All commits are here:
http://cgit.freedesktop.org/~mareko/mesa/log/?h=timer-query

Change log:
- reimplemented glGet(GL_TIMESTAMP) as per Eric Anholt's comment
- updated all gallium patches
- added softpipe support

The craziness with the cpu-gpu difference is gone. Softpipe (specifically the os_time_get function) uses gettimeofday instead of the proposed xserver's GetTimeInMillis function, but I don't consider that a big deal (especially if it's only softpipe using it).

Please review.

Marek Olšák (4):
      mesa: implement glGet(GL_TIMESTAMP) v2
      gallium: add QUERY_TIMESTAMP cap and get_timestamp screen function
      st/mesa: implement ARB_timer_query
      softpipe: implement get_timestamp and expose ARB_timer_query

 src/gallium/drivers/i915/i915_screen.c   |    1 +
 src/gallium/drivers/llvmpipe/lp_screen.c |    1 +
 src/gallium/drivers/nv30/nv30_screen.c   |    1 +
 src/gallium/drivers/nv50/nv50_screen.c   |    1 +
 src/gallium/drivers/nvc0/nvc0_screen.c   |    1 +
 src/gallium/drivers/r300/r300_screen.c   |    1 +
 src/gallium/drivers/r600/r600_pipe.c     |    1 +
 src/gallium/drivers/softpipe/sp_screen.c |   10 ++++++++++
 src/gallium/drivers/svga/svga_screen.c   |    1 +
 src/gallium/include/pipe/p_defines.h     |    3 ++-
 src/gallium/include/pipe/p_screen.h      |    7 +++++++
 src/mesa/main/dd.h                       |    6 ++++++
 src/mesa/main/get.c                      |   17 ++++++++++++++++-
 src/mesa/state_tracker/st_cb_queryobj.c  |   14 ++++++++++++++
 src/mesa/state_tracker/st_extensions.c   |    5 +++++
 15 files changed, 68 insertions(+), 2 deletions(-)

Marek


More information about the mesa-dev mailing list