common/cpu_detect: Remove FMA4 detection (#1746)

This commit is contained in:
RedBlackAka 2026-02-17 13:21:21 +01:00 committed by GitHub
parent 6c6dd68780
commit 5d4aef81fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 11 deletions

View File

@ -396,7 +396,7 @@ GMainWindow::GMainWindow(Core::System& system_)
} else if (caps.avx2) {
cpu_string += '2';
}
if (caps.fma || caps.fma4) {
if (caps.fma) {
cpu_string += " | FMA";
}
}

View File

@ -1,7 +1,10 @@
// Copyright 2013 Dolphin Emulator Project / 2015 Citra Emulator Project
// Copyright Citra Emulator Project / Azahar Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "common/arch.h"
#if CITRA_ARCH(x86_64)
@ -131,13 +134,6 @@ static CPUCaps Detect() {
std::memcpy(caps.cpu_string + 32, cpu_id, sizeof(cpu_id));
}
if (max_ex_fn >= 0x80000001) {
// Check for more features
__cpuid(cpu_id, 0x80000001);
if ((cpu_id[2] >> 16) & 1)
caps.fma4 = true;
}
return caps;
}

View File

@ -1,7 +1,10 @@
// Copyright 2013 Dolphin Emulator Project / 2015 Citra Emulator Project
// Copyright Citra Emulator Project / Azahar Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "common/arch.h"
@ -25,7 +28,6 @@ struct CPUCaps {
bool bmi1;
bool bmi2;
bool fma;
bool fma4;
bool aes;
};