diff options
author | Rob Clark <robdclark@chromium.org> | 2021-03-17 11:27:30 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-05-10 15:34:07 +0000 |
commit | 3e13e4546775a857157a8d2f2fd50f157b38fbff (patch) | |
tree | 7238b5d731d1376c698d47218c84e1a4d2b3a6ee /src/tool | |
parent | ecfb00fb09a109b5de2cce21abe8be9ee66721bd (diff) | |
download | mesa-3e13e4546775a857157a8d2f2fd50f157b38fbff.tar.gz mesa-3e13e4546775a857157a8d2f2fd50f157b38fbff.tar.bz2 mesa-3e13e4546775a857157a8d2f2fd50f157b38fbff.zip |
freedreno: Add freedreno pps driver
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9901>
Diffstat (limited to 'src/tool')
-rw-r--r-- | src/tool/pps/meson.build | 2 | ||||
-rw-r--r-- | src/tool/pps/pps_driver.cc | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/tool/pps/meson.build b/src/tool/pps/meson.build index 9ca5e57e003..e0e0361d6f2 100644 --- a/src/tool/pps/meson.build +++ b/src/tool/pps/meson.build @@ -19,7 +19,7 @@ pps_deps += pps_datasources lib_pps = static_library( 'pps', sources: pps_sources, - include_directories: [include_pps, inc_src], + include_directories: [include_pps, inc_src, pps_includes], dependencies: pps_deps, cpp_args: '-std=c++17' ) diff --git a/src/tool/pps/pps_driver.cc b/src/tool/pps/pps_driver.cc index 6c7c340a941..b32dcd26ea5 100644 --- a/src/tool/pps/pps_driver.cc +++ b/src/tool/pps/pps_driver.cc @@ -13,6 +13,10 @@ #include <iterator> #include <sstream> +#ifdef PPS_FREEDRENO +#include "freedreno/ds/fd_pps_driver.h" +#endif // PPS_FREEDRENO + #include "pps.h" #include "pps_algorithm.h" @@ -21,6 +25,11 @@ namespace pps std::unordered_map<std::string, std::unique_ptr<Driver>> create_supported_drivers() { std::unordered_map<std::string, std::unique_ptr<Driver>> map; + +#ifdef PPS_FREEDRENO + map.emplace("msm", std::make_unique<FreedrenoDriver>()); +#endif // PPS_FREEDRENO + return map; } |