[Mesa-dev] [PATCH 0/5] nvc0: split HW/SQ queries in different files

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Oct 5 12:11:51 PDT 2015


Hi there,

This series splits HW (including MP performance counters) and SW queries in
different files to improve readability of this area of the nvc0 driver.

This also prepares the way for landing global performance counters (PCOUNTER)
in the next few weeks.

I tested this series on Fermi and Kepler and I launched some piglit tests
related to those queries. No regressions.

Feel free to review,
Thanks.

Samuel.

Samuel Pitoiset (5):
  nvc0: add a header file for nvc0_query
  nvc0: move nvc0_so_target_save_offset() to its correct location
  nvc0: move SW queries to nvc0_query_sw.c/h files
  nvc0: move HW queries to nvc0_query_hw.c/h files
  nvc0: move HW SM queries to nvc0_query_hw_sm.c/h files

 src/gallium/drivers/nouveau/Makefile.sources       |    7 +
 src/gallium/drivers/nouveau/nvc0/nvc0_context.h    |   12 +-
 src/gallium/drivers/nouveau/nvc0/nvc0_query.c      | 1183 +-------------------
 src/gallium/drivers/nouveau/nvc0/nvc0_query.h      |   33 +
 src/gallium/drivers/nouveau/nvc0/nvc0_query_hw.c   |  457 ++++++++
 src/gallium/drivers/nouveau/nvc0/nvc0_query_hw.h   |  156 +++
 .../drivers/nouveau/nvc0/nvc0_query_hw_sm.c        |  749 +++++++++++++
 .../drivers/nouveau/nvc0/nvc0_query_hw_sm.h        |   20 +
 src/gallium/drivers/nouveau/nvc0/nvc0_query_sw.c   |   92 ++
 src/gallium/drivers/nouveau/nvc0/nvc0_query_sw.h   |   61 +
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.h     |  144 +--
 .../drivers/nouveau/nvc0/nvc0_shader_state.c       |    5 +-
 src/gallium/drivers/nouveau/nvc0/nvc0_state.c      |   20 +
 src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c        |    5 +-
 14 files changed, 1633 insertions(+), 1311 deletions(-)
 create mode 100644 src/gallium/drivers/nouveau/nvc0/nvc0_query.h
 create mode 100644 src/gallium/drivers/nouveau/nvc0/nvc0_query_hw.c
 create mode 100644 src/gallium/drivers/nouveau/nvc0/nvc0_query_hw.h
 create mode 100644 src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c
 create mode 100644 src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.h
 create mode 100644 src/gallium/drivers/nouveau/nvc0/nvc0_query_sw.c
 create mode 100644 src/gallium/drivers/nouveau/nvc0/nvc0_query_sw.h

-- 
2.6.0



More information about the mesa-dev mailing list