[Mesa-dev] GL_AMD_performance_monitor v4

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Jul 11 11:22:57 PDT 2014


Hello everyone,

New version of GL_AMD_performance_monitor (version 4).

V2 (global changes):
 - Fix radeon as pinpointed by Marek
 - Implement pipe_driver_query_group_info for svga, radeon and
   freedreno

V3 (global changes):
 - Re-organize the series according to hints of Ilia Mirkin
 - Document pipe_driver_query_group_info
 - Re-order pipe_numeric_type_union to avoid bad initializers
 - Add pipe_driver_query_type enum
 - Only enable AMD_performance_monitor if the driver implements
 pipe_driver_query_info and pipe_driver_query_group_info

V4 (global changes):
 - Free allocated memory of groups and counters (this fixes a memleak)
 - Document some functions
 - Change copyrights
 - Mark radeonsi as supported by AMD_performance_monitor since it shares the
 same code that r600

GL_AMD_performance_monitor is now available for nvc0, svga,
freedreno and radeon.

 docs/relnotes/10.3.html                            |   1 +
 src/gallium/auxiliary/Makefile.sources             |   1 +
 src/gallium/auxiliary/hud/hud_driver_query.c       |   2 +-
 src/gallium/auxiliary/util/u_query.c               |  50 +++++++++++++++
 src/gallium/auxiliary/util/u_query.h               |  45 ++++++++++++++
 src/gallium/docs/source/screen.rst                 |  10 +++
 src/gallium/drivers/freedreno/freedreno_query.c    |  25 +++++---
 src/gallium/drivers/freedreno/freedreno_query.h    |   3 +-
 src/gallium/drivers/freedreno/freedreno_query_hw.c |   3 +-
 src/gallium/drivers/freedreno/freedreno_query_sw.c |   3 +-
 src/gallium/drivers/galahad/glhd_context.c         |   6 +-
 src/gallium/drivers/i915/i915_query.c              |   3 +-
 src/gallium/drivers/identity/id_context.c          |   6 +-
 src/gallium/drivers/ilo/ilo_query.c                |   3 +-
 src/gallium/drivers/llvmpipe/lp_query.c            |   3 +-
 src/gallium/drivers/noop/noop_pipe.c               |   3 +-
 src/gallium/drivers/nouveau/nv30/nv30_query.c      |   5 +-
 src/gallium/drivers/nouveau/nv50/nv50_query.c      |   3 +-
 src/gallium/drivers/nouveau/nvc0/nvc0_query.c      |  89 ++++++++++++++++++++++-----
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c     |   1 +
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.h     |   8 +++
 src/gallium/drivers/r300/r300_query.c              |   9 +--
 src/gallium/drivers/radeon/r600_pipe_common.c      |  25 +++++---
 src/gallium/drivers/radeon/r600_pipe_common.h      |   1 +
 src/gallium/drivers/radeon/r600_query.c            |  16 ++---
 src/gallium/drivers/rbug/rbug_context.c            |   8 ++-
 src/gallium/drivers/softpipe/sp_query.c            |   3 +-
 src/gallium/drivers/svga/svga_context.h            |   1 +
 src/gallium/drivers/svga/svga_pipe_query.c         |   3 +-
 src/gallium/drivers/svga/svga_screen.c             |  17 +++++-
 src/gallium/drivers/trace/tr_context.c             |   6 +-
 src/gallium/include/pipe/p_context.h               |   2 +-
 src/gallium/include/pipe/p_defines.h               |  34 ++++++++++-
 src/gallium/include/pipe/p_screen.h                |  11 ++++
 src/mesa/Makefile.sources                          |   1 +
 src/mesa/state_tracker/st_cb_perfmon.c             | 392 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/mesa/state_tracker/st_cb_perfmon.h             |  64 ++++++++++++++++++++
 src/mesa/state_tracker/st_context.c                |   4 ++
 src/mesa/state_tracker/st_extensions.c             |   3 +
 39 files changed, 803 insertions(+), 70 deletions(-)



More information about the mesa-dev mailing list