mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 09:00:10 +01:00
freedreno/perfcntrs: add fdperf
Port from the envytools tree, but converted to use the .c tables for describing the perfcounter groups/countables, rather than using rnndec to get this at runtime from the register xml. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
This commit is contained in:
parent
b2338a5b00
commit
5a13507164
2 changed files with 1082 additions and 0 deletions
1058
src/freedreno/perfcntrs/fdperf.c
Normal file
1058
src/freedreno/perfcntrs/fdperf.c
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -36,3 +36,27 @@ libfreedreno_perfcntrs = static_library(
|
|||
build_by_default : false,
|
||||
)
|
||||
|
||||
dep_libconfig = dependency('libconfig', required : false)
|
||||
dep_ncurses = dependency('ncurses', required : false)
|
||||
|
||||
if dep_libconfig.found() and dep_ncurses.found()
|
||||
fdperf = executable(
|
||||
'fdperf',
|
||||
'fdperf.c',
|
||||
include_directories : [
|
||||
inc_common,
|
||||
inc_freedreno,
|
||||
],
|
||||
link_with : [
|
||||
libfreedreno_drm,
|
||||
libfreedreno_perfcntrs,
|
||||
],
|
||||
dependencies : [
|
||||
dep_libconfig,
|
||||
dep_ncurses,
|
||||
idep_mesautil,
|
||||
],
|
||||
build_by_default : with_tools.contains('freedreno'),
|
||||
install : with_tools.contains('freedreno'),
|
||||
)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue