pps: Panfrost pps driver

Add the Panfrost pps driver.

v2: Human readable names for counter blocks and use `unreachable`.
v3: Use libpanfrost_perf to collect counter values.

Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10215>
This commit is contained in:
Antonio Caggiano
2021-03-18 19:29:33 +01:00
committed by Marge Bot
parent bcf8c7910d
commit 513d1baaea
8 changed files with 424 additions and 0 deletions
+8
View File
@@ -21,6 +21,10 @@
#include "intel/ds/intel_pps_driver.h"
#endif // PPS_INTEL
#ifdef PPS_PANFROST
#include "panfrost/ds/pan_pps_driver.h"
#endif // PPS_PANFROST
#include "pps.h"
#include "pps_algorithm.h"
@@ -38,6 +42,10 @@ std::unordered_map<std::string, std::unique_ptr<Driver>> create_supported_driver
map.emplace("i915", std::make_unique<IntelDriver>());
#endif // PPS_INTEL
#ifdef PPS_PANFROST
map.emplace("panfrost", std::make_unique<PanfrostDriver>());
#endif // PPS_PANFROST
return map;
}