st/mesa: implement GL_AMD_performance_monitor
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 4 Jul 2014 11:02:06 +0000 (13:02 +0200)
committerMartin Peres <martin.peres@linux.intel.com>
Tue, 5 May 2015 21:03:36 +0000 (00:03 +0300)
commit4cd1cfb9831d4d4081cbe80b0d72b340c8fd0c2c
tree84bb6bd297c7c43a95711631815858b0b4ba66bc
parent96f164f6f047833091eb98a73aa80c31dc94f962
st/mesa: implement GL_AMD_performance_monitor

This is based on the original patch of Christoph Bumiller.

v2 (Samuel Pitoiset):
 - improve Gallium interface for this extension
 - rewrite some parts of the original code
 - fix compilation errors and piglit tests

v3:
 - only enable this extension when the underlying driver expose GPU counters
 - get rid of the ring buffer of queries

v4:
 - add a debug message when the maximum number of counters has been
   reached

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Martin Peres <martin.peres@free.fr>
src/mesa/Makefile.sources
src/mesa/state_tracker/st_cb_perfmon.c [new file with mode: 0644]
src/mesa/state_tracker/st_cb_perfmon.h [new file with mode: 0644]
src/mesa/state_tracker/st_context.c