From 962b996d4c569835e0c453a60bb4680d432d30f1 Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Wed, 6 Nov 2024 02:02:26 -0500 Subject: [PATCH] util: drop XOP detection code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduced in 2013 with prospect of being used in future. ... 11 years later. Fixes: 4b45b61fef6e ("util: add avx2 and xop detection to cpu detection code") # 24.3 Reviewed-by: Marek Olšák Reviewed-by: Yonggang Luo Signed-off-by: David Heidelberg Part-of: --- src/util/u_cpu_detect.c | 8 -------- src/util/u_cpu_detect.h | 1 - 2 files changed, 9 deletions(-) diff --git a/src/util/u_cpu_detect.c b/src/util/u_cpu_detect.c index 7fe0962517b..d6effd7671d 100644 --- a/src/util/u_cpu_detect.c +++ b/src/util/u_cpu_detect.c @@ -925,13 +925,6 @@ _util_cpu_detect_once(void) cpuid(0x80000000, regs); - if (regs[0] >= 0x80000001) { - cpuid(0x80000001, regs2); - - util_cpu_caps.has_xop = util_cpu_caps.has_avx && - ((regs2[2] >> 11) & 1); - } - if (regs[0] >= 0x80000006) { /* should we really do this if the clflush size above worked? */ unsigned int cacheline; @@ -986,7 +979,6 @@ _util_cpu_detect_once(void) printf("util_cpu_caps.has_avx2 = %u\n", util_cpu_caps.has_avx2); printf("util_cpu_caps.has_f16c = %u\n", util_cpu_caps.has_f16c); printf("util_cpu_caps.has_popcnt = %u\n", util_cpu_caps.has_popcnt); - printf("util_cpu_caps.has_xop = %u\n", util_cpu_caps.has_xop); printf("util_cpu_caps.has_altivec = %u\n", util_cpu_caps.has_altivec); printf("util_cpu_caps.has_vsx = %u\n", util_cpu_caps.has_vsx); printf("util_cpu_caps.has_neon = %u\n", util_cpu_caps.has_neon); diff --git a/src/util/u_cpu_detect.h b/src/util/u_cpu_detect.h index a97db077c58..6e52b75659b 100644 --- a/src/util/u_cpu_detect.h +++ b/src/util/u_cpu_detect.h @@ -98,7 +98,6 @@ struct util_cpu_caps_t { unsigned has_avx2:1; unsigned has_f16c:1; unsigned has_fma:1; - unsigned has_xop:1; unsigned has_altivec:1; unsigned has_vsx:1; unsigned has_daz:1;