Mesa (main): util/cpu_detect: print num_L3_caches and num_cpu_mask_bits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 31 22:52:44 UTC 2021


Module: Mesa
Branch: main
Commit: d7a36d890760acb8f0460dd9cde9983f200eb091
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d7a36d890760acb8f0460dd9cde9983f200eb091

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon Jun 14 16:33:01 2021 -0400

util/cpu_detect: print num_L3_caches and num_cpu_mask_bits

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12335>

---

 src/util/u_cpu_detect.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util/u_cpu_detect.c b/src/util/u_cpu_detect.c
index 9aea9e798bb..df52ad4f4b2 100644
--- a/src/util/u_cpu_detect.c
+++ b/src/util/u_cpu_detect.c
@@ -849,6 +849,8 @@ util_cpu_detect_once(void)
       printf("util_cpu_caps.has_avx512bw = %u\n", util_cpu_caps.has_avx512bw);
       printf("util_cpu_caps.has_avx512vl = %u\n", util_cpu_caps.has_avx512vl);
       printf("util_cpu_caps.has_avx512vbmi = %u\n", util_cpu_caps.has_avx512vbmi);
+      printf("util_cpu_caps.num_L3_caches = %u\n", util_cpu_caps.num_L3_caches);
+      printf("util_cpu_caps.num_cpu_mask_bits = %u\n", util_cpu_caps.num_cpu_mask_bits);
    }
 }
 



More information about the mesa-commit mailing list