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;