commit | 8082b2f73e25a93b43c20e72d1d73a66cbf39cee | [log] [tgz] |
---|---|---|
author | John Bauman <jbauman@google.com> | Thu Aug 13 22:08:31 2020 +0000 |
committer | John Bauman <jbauman@google.com> | Fri Aug 14 15:56:29 2020 +0000 |
tree | 13b1f013bec2574d7ca2c18497c977854fb3e800 | |
parent | 12176a9d3eef3ed46442e4015365a202a6638919 [diff] |
Fix l2_slices count We need to add 1 to the value from hardware. Test: new transaction elimination test inside fuchsia repo Change-Id: I2c7c1a7f6b6cebdc40b4af6c7799adf6c826a8ff Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/github.com/ARM-software/HWCPipe/+/416854 Reviewed-by: Craig Stout <cstout@google.com>
diff --git a/vendor/arm/mali/mali_profiler_magma.cpp b/vendor/arm/mali/mali_profiler_magma.cpp index 4839e64..03e4034 100644 --- a/vendor/arm/mali/mali_profiler_magma.cpp +++ b/vendor/arm/mali/mali_profiler_magma.cpp
@@ -288,7 +288,7 @@ { throw std::runtime_error("Querying memory features failed."); } - hw_info.l2_slices = extract_bits(mem_features, 8, 5); + hw_info.l2_slices = extract_bits(mem_features, 8, 5) + 1; num_cores_ = hw_info.mp_count; num_l2_slices_ = hw_info.l2_slices;