gallium: enable INTEL_PERFORMANCE_QUERY
authorDongwon Kim <dongwon.kim@intel.com>
Tue, 15 Oct 2019 19:43:04 +0000 (12:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 11 Dec 2019 01:02:58 +0000 (17:02 -0800)
commit106054ef79558699806b06a51e3d8cf2025ecbc4
treeebe1ae145a1eb58c9f85ecf9329b3175227c04cf
parentd0eebda99088d15199aa0ae2c2d62ab6939568ce
gallium: enable INTEL_PERFORMANCE_QUERY

new state tracker APIs added for INTEL_performance_query
This extension is enabled if all vendor specific functions for it
exist.

v2: add st_cb_perfquery.* to the list of sources in Makefile
v3: minor code clean-up
v4: - add driver hooks for intel-performance-query apis
    - add PIPE level performance counter and type enums that
      match to OpenGL enums
    - do conversion of pipe_perf_counter_type and
      pipe_perf_counter_data_type enums to GL defines in state_tracker

Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/include/pipe/p_context.h
src/gallium/include/pipe/p_defines.h
src/mesa/Makefile.sources
src/mesa/meson.build
src/mesa/state_tracker/st_cb_perfquery.c [new file with mode: 0644]
src/mesa/state_tracker/st_cb_perfquery.h [new file with mode: 0644]
src/mesa/state_tracker/st_context.c