From ca947e1295a8aedd4b7f09ca89ab285156b1309e Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Wed, 6 Nov 2024 01:56:38 -0500 Subject: [PATCH] util: Drop ancient Intel CPU detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don't use it for anything. Cc: mesa-stable # 24.3 Reviewed-by: Marek Olšák Reviewed-by: Yonggang Luo Signed-off-by: David Heidelberg Part-of: --- src/util/u_cpu_detect.c | 5 ----- src/util/u_cpu_detect.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/util/u_cpu_detect.c b/src/util/u_cpu_detect.c index 5b91ef31fa6..7fe0962517b 100644 --- a/src/util/u_cpu_detect.c +++ b/src/util/u_cpu_detect.c @@ -923,11 +923,6 @@ _util_cpu_detect_once(void) } } - if (regs[1] == 0x756e6547 && regs[2] == 0x6c65746e && regs[3] == 0x49656e69) { - /* GenuineIntel */ - util_cpu_caps.has_intel = 1; - } - cpuid(0x80000000, regs); if (regs[0] >= 0x80000001) { diff --git a/src/util/u_cpu_detect.h b/src/util/u_cpu_detect.h index 152e9b8c773..a97db077c58 100644 --- a/src/util/u_cpu_detect.h +++ b/src/util/u_cpu_detect.h @@ -87,7 +87,6 @@ struct util_cpu_caps_t { int x86_cpu_type; unsigned cacheline; - unsigned has_intel:1; unsigned has_sse:1; unsigned has_sse2:1; unsigned has_sse3:1;