mesa: Add core support for the GL_INTEL_performance_query extension.
authorPetri Latvala <petri.latvala@intel.com>
Wed, 23 Apr 2014 08:08:52 +0000 (11:08 +0300)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 2 May 2014 17:07:04 +0000 (10:07 -0700)
commitdac82ceac5d726ff8851051f671396cfbd1abc63
treebdc4d8190e5fbe5d82990a5fa06ead42838c6ea4
parent6ccb98e88c3589dd8f09737ea0c47682bb19e4d3
mesa: Add core support for the GL_INTEL_performance_query extension.

Like AMD_performance_monitor, this extension provides an interface for
applications (and OpenGL-based tools) to access GPU performance
counters. Since the exact performance counters available vary between
vendors and hardware generations, the extension provides an API the
application can use to get the names, types, and minimum/maximum
values of all available counters.

Applications create performance queries based on available query
types, and begin/end measurement collection. Multiple queries can be
measuring simultaneously.

v2: Whitespace changes
v3: src/mapi/glapi/gen/gl_API.xml: Also expose the functions to GLES2.
v4: Whitespace changes, static_dispatch="false" for all functions, fix
    dispatch_sanity test for GLES2 functions

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mapi/glapi/gen/INTEL_performance_query.xml [new file with mode: 0644]
src/mapi/glapi/gen/Makefile.am
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/config.h
src/mesa/main/extensions.c
src/mesa/main/get.c
src/mesa/main/get_hash_params.py
src/mesa/main/mtypes.h
src/mesa/main/performance_monitor.c
src/mesa/main/performance_monitor.h
src/mesa/main/tests/dispatch_sanity.cpp