mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
util: Drop 3Dnow optimisation leftovers
Fixes: a3218e65d1 ("mesa: remove long dead 3Dnow optimisation") # 24.3
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31998>
This commit is contained in:
parent
59b2549279
commit
ae85e6920c
2 changed files with 0 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue