From ae85e6920c18c6f850c22e183f2f740c45b69ad3 Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Wed, 6 Nov 2024 01:38:47 -0500 Subject: [PATCH] util: Drop 3Dnow optimisation leftovers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: a3218e65d1e5 ("mesa: remove long dead 3Dnow optimisation") # 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 | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/util/u_cpu_detect.c b/src/util/u_cpu_detect.c index eeea012e1cc..df5d4bdb089 100644 --- a/src/util/u_cpu_detect.c +++ b/src/util/u_cpu_detect.c @@ -933,13 +933,10 @@ _util_cpu_detect_once(void) cpuid(0x80000000, regs); if (regs[0] >= 0x80000001) { - cpuid(0x80000001, regs2); util_cpu_caps.has_mmx |= (regs2[3] >> 23) & 1; util_cpu_caps.has_mmx2 |= (regs2[3] >> 22) & 1; - util_cpu_caps.has_3dnow = (regs2[3] >> 31) & 1; - util_cpu_caps.has_3dnow_ext = (regs2[3] >> 30) & 1; util_cpu_caps.has_xop = util_cpu_caps.has_avx && ((regs2[2] >> 11) & 1); @@ -1001,8 +998,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_3dnow = %u\n", util_cpu_caps.has_3dnow); - printf("util_cpu_caps.has_3dnow_ext = %u\n", util_cpu_caps.has_3dnow_ext); 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); diff --git a/src/util/u_cpu_detect.h b/src/util/u_cpu_detect.h index 13868482b76..bea85124ee2 100644 --- a/src/util/u_cpu_detect.h +++ b/src/util/u_cpu_detect.h @@ -101,8 +101,6 @@ struct util_cpu_caps_t { unsigned has_avx2:1; unsigned has_f16c:1; unsigned has_fma:1; - unsigned has_3dnow:1; - unsigned has_3dnow_ext:1; unsigned has_xop:1; unsigned has_altivec:1; unsigned has_vsx:1;