summaryrefslogtreecommitdiffstats
path: root/src/yuzu
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-06-23 21:19:47 +0200
committerGitHub <noreply@github.com>2020-06-23 21:19:47 +0200
commit60da57b518ad712189b015c5d5afcba52446212e (patch)
treeca9e7918727594bc02968515d77f0a7a52ccc15a /src/yuzu
parentMerge pull request #4148 from Morph1984/silence-warnings (diff)
parentmain: Append AVX and FMA instructions to cpu string (diff)
downloadyuzu-60da57b518ad712189b015c5d5afcba52446212e.tar
yuzu-60da57b518ad712189b015c5d5afcba52446212e.tar.gz
yuzu-60da57b518ad712189b015c5d5afcba52446212e.tar.bz2
yuzu-60da57b518ad712189b015c5d5afcba52446212e.tar.lz
yuzu-60da57b518ad712189b015c5d5afcba52446212e.tar.xz
yuzu-60da57b518ad712189b015c5d5afcba52446212e.tar.zst
yuzu-60da57b518ad712189b015c5d5afcba52446212e.zip
Diffstat (limited to 'src/yuzu')
-rw-r--r--src/yuzu/main.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 4119d7907..059b96e70 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -217,7 +217,20 @@ GMainWindow::GMainWindow()
LOG_INFO(Frontend, "yuzu Version: {} | {}-{}", yuzu_build_version, Common::g_scm_branch,
Common::g_scm_desc);
#ifdef ARCHITECTURE_x86_64
- LOG_INFO(Frontend, "Host CPU: {}", Common::GetCPUCaps().cpu_string);
+ const auto& caps = Common::GetCPUCaps();
+ std::string cpu_string = caps.cpu_string;
+ if (caps.avx || caps.avx2 || caps.avx512) {
+ cpu_string += " | AVX";
+ if (caps.avx512) {
+ cpu_string += "512";
+ } else if (caps.avx2) {
+ cpu_string += '2';
+ }
+ if (caps.fma || caps.fma4) {
+ cpu_string += " | FMA";
+ }
+ }
+ LOG_INFO(Frontend, "Host CPU: {}", cpu_string);
#endif
LOG_INFO(Frontend, "Host OS: {}", QSysInfo::prettyProductName().toStdString());
LOG_INFO(Frontend, "Host RAM: {:.2f} GB",