OSDN Git Service

i965: Implement INTEL_performance_query backend
authorRobert Bragg <robert@sixbynine.org>
Fri, 13 Mar 2015 22:10:47 +0000 (22:10 +0000)
committerRobert Bragg <robert@sixbynine.org>
Wed, 22 Feb 2017 19:16:21 +0000 (19:16 +0000)
commita96c9564e319cb387a9acf4981383cc77b018d0f
tree278599f5ab8d30bd31f57e598087cbeeefea8575
parent0e7464f0a93908cc31d05fb33611f3cd73a7be65
i965: Implement INTEL_performance_query backend

This adds a bare-bones backend for the INTEL_performance_query extension
that exposes pipeline statistics.

Although this could be considered redundant given that the same
statistics are already available via query objects, they are a simple
starting point for this extension and it's expected to be convenient for
tools wanting to have a single go to api to introspect what performance
counters are available, along with names, descriptions and semantic/data
types.

This code is derived from Kenneth Graunke's work, temporarily removed
while the frontend and backend interface were reworked.

Signed-off-by: Robert Bragg <robert@sixbynine.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_performance_query.c [new file with mode: 0644]
src/mesa/drivers/dri/i965/brw_performance_query.h [new file with mode: 0644]
src/mesa/drivers/dri/i965/intel_extensions.c