diff options
| author | 2023-06-07 01:52:23 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:54 -0400 | |
| commit | d146dd9d123a999e40307a93403239b81b04bffc (patch) | |
| tree | 6d338ad871fa37b47f00938773d5e27195325897 /src/core | |
| parent | configuration: Use IDs to sort holds (diff) | |
| download | yuzu-d146dd9d123a999e40307a93403239b81b04bffc.tar.gz yuzu-d146dd9d123a999e40307a93403239b81b04bffc.tar.xz yuzu-d146dd9d123a999e40307a93403239b81b04bffc.zip | |
settings,general: Rename non-confirming enums
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic_32.cpp | 6 | ||||
| -rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic_64.cpp | 6 | ||||
| -rw-r--r-- | src/core/telemetry_session.cpp | 26 |
3 files changed, 18 insertions, 20 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.cpp b/src/core/arm/dynarmic/arm_dynarmic_32.cpp index 3b82fb73c..dc7cfd239 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp | |||
| @@ -287,7 +287,7 @@ std::shared_ptr<Dynarmic::A32::Jit> ARM_Dynarmic_32::MakeJit(Common::PageTable* | |||
| 287 | } | 287 | } |
| 288 | } else { | 288 | } else { |
| 289 | // Unsafe optimizations | 289 | // Unsafe optimizations |
| 290 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CPUAccuracy::Unsafe) { | 290 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CpuAccuracy::Unsafe) { |
| 291 | config.unsafe_optimizations = true; | 291 | config.unsafe_optimizations = true; |
| 292 | if (Settings::values.cpuopt_unsafe_unfuse_fma) { | 292 | if (Settings::values.cpuopt_unsafe_unfuse_fma) { |
| 293 | config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_UnfuseFMA; | 293 | config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_UnfuseFMA; |
| @@ -307,7 +307,7 @@ std::shared_ptr<Dynarmic::A32::Jit> ARM_Dynarmic_32::MakeJit(Common::PageTable* | |||
| 307 | } | 307 | } |
| 308 | 308 | ||
| 309 | // Curated optimizations | 309 | // Curated optimizations |
| 310 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CPUAccuracy::Auto) { | 310 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CpuAccuracy::Auto) { |
| 311 | config.unsafe_optimizations = true; | 311 | config.unsafe_optimizations = true; |
| 312 | config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_UnfuseFMA; | 312 | config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_UnfuseFMA; |
| 313 | config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_IgnoreStandardFPCRValue; | 313 | config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_IgnoreStandardFPCRValue; |
| @@ -316,7 +316,7 @@ std::shared_ptr<Dynarmic::A32::Jit> ARM_Dynarmic_32::MakeJit(Common::PageTable* | |||
| 316 | } | 316 | } |
| 317 | 317 | ||
| 318 | // Paranoia mode for debugging optimizations | 318 | // Paranoia mode for debugging optimizations |
| 319 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CPUAccuracy::Paranoid) { | 319 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CpuAccuracy::Paranoid) { |
| 320 | config.unsafe_optimizations = false; | 320 | config.unsafe_optimizations = false; |
| 321 | config.optimizations = Dynarmic::no_optimizations; | 321 | config.optimizations = Dynarmic::no_optimizations; |
| 322 | } | 322 | } |
diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.cpp b/src/core/arm/dynarmic/arm_dynarmic_64.cpp index bb97ed5bc..a4cc74ebf 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_64.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_64.cpp | |||
| @@ -347,7 +347,7 @@ std::shared_ptr<Dynarmic::A64::Jit> ARM_Dynarmic_64::MakeJit(Common::PageTable* | |||
| 347 | } | 347 | } |
| 348 | } else { | 348 | } else { |
| 349 | // Unsafe optimizations | 349 | // Unsafe optimizations |
| 350 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CPUAccuracy::Unsafe) { | 350 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CpuAccuracy::Unsafe) { |
| 351 | config.unsafe_optimizations = true; | 351 | config.unsafe_optimizations = true; |
| 352 | if (Settings::values.cpuopt_unsafe_unfuse_fma) { | 352 | if (Settings::values.cpuopt_unsafe_unfuse_fma) { |
| 353 | config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_UnfuseFMA; | 353 | config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_UnfuseFMA; |
| @@ -367,7 +367,7 @@ std::shared_ptr<Dynarmic::A64::Jit> ARM_Dynarmic_64::MakeJit(Common::PageTable* | |||
| 367 | } | 367 | } |
| 368 | 368 | ||
| 369 | // Curated optimizations | 369 | // Curated optimizations |
| 370 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CPUAccuracy::Auto) { | 370 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CpuAccuracy::Auto) { |
| 371 | config.unsafe_optimizations = true; | 371 | config.unsafe_optimizations = true; |
| 372 | config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_UnfuseFMA; | 372 | config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_UnfuseFMA; |
| 373 | config.fastmem_address_space_bits = 64; | 373 | config.fastmem_address_space_bits = 64; |
| @@ -375,7 +375,7 @@ std::shared_ptr<Dynarmic::A64::Jit> ARM_Dynarmic_64::MakeJit(Common::PageTable* | |||
| 375 | } | 375 | } |
| 376 | 376 | ||
| 377 | // Paranoia mode for debugging optimizations | 377 | // Paranoia mode for debugging optimizations |
| 378 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CPUAccuracy::Paranoid) { | 378 | if (Settings::values.cpu_accuracy.GetValue() == Settings::CpuAccuracy::Paranoid) { |
| 379 | config.unsafe_optimizations = false; | 379 | config.unsafe_optimizations = false; |
| 380 | config.optimizations = Dynarmic::no_optimizations; | 380 | config.optimizations = Dynarmic::no_optimizations; |
| 381 | } | 381 | } |
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index c058ac2c7..62b3f6636 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp | |||
| @@ -61,16 +61,14 @@ static const char* TranslateRenderer(Settings::RendererBackend backend) { | |||
| 61 | return "Unknown"; | 61 | return "Unknown"; |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | static const char* TranslateGPUAccuracyLevel(Settings::GPUAccuracy backend) { | 64 | static const char* TranslateGPUAccuracyLevel(Settings::GpuAccuracy backend) { |
| 65 | switch (backend) { | 65 | switch (backend) { |
| 66 | case Settings::GPUAccuracy::Normal: | 66 | case Settings::GpuAccuracy::Normal: |
| 67 | return "Normal"; | 67 | return "Normal"; |
| 68 | case Settings::GPUAccuracy::High: | 68 | case Settings::GpuAccuracy::High: |
| 69 | return "High"; | 69 | return "High"; |
| 70 | case Settings::GPUAccuracy::Extreme: | 70 | case Settings::GpuAccuracy::Extreme: |
| 71 | return "Extreme"; | 71 | return "Extreme"; |
| 72 | case Settings::GPUAccuracy::MaxEnum: | ||
| 73 | break; | ||
| 74 | } | 72 | } |
| 75 | return "Unknown"; | 73 | return "Unknown"; |
| 76 | } | 74 | } |
| @@ -79,9 +77,9 @@ static const char* TranslateNvdecEmulation(Settings::NvdecEmulation backend) { | |||
| 79 | switch (backend) { | 77 | switch (backend) { |
| 80 | case Settings::NvdecEmulation::Off: | 78 | case Settings::NvdecEmulation::Off: |
| 81 | return "Off"; | 79 | return "Off"; |
| 82 | case Settings::NvdecEmulation::CPU: | 80 | case Settings::NvdecEmulation::Cpu: |
| 83 | return "CPU"; | 81 | return "CPU"; |
| 84 | case Settings::NvdecEmulation::GPU: | 82 | case Settings::NvdecEmulation::Gpu: |
| 85 | return "GPU"; | 83 | return "GPU"; |
| 86 | } | 84 | } |
| 87 | return "Unknown"; | 85 | return "Unknown"; |
| @@ -93,9 +91,9 @@ static constexpr const char* TranslateVSyncMode(Settings::VSyncMode mode) { | |||
| 93 | return "Immediate"; | 91 | return "Immediate"; |
| 94 | case Settings::VSyncMode::Mailbox: | 92 | case Settings::VSyncMode::Mailbox: |
| 95 | return "Mailbox"; | 93 | return "Mailbox"; |
| 96 | case Settings::VSyncMode::FIFO: | 94 | case Settings::VSyncMode::Fifo: |
| 97 | return "FIFO"; | 95 | return "FIFO"; |
| 98 | case Settings::VSyncMode::FIFORelaxed: | 96 | case Settings::VSyncMode::FifoRelaxed: |
| 99 | return "FIFO Relaxed"; | 97 | return "FIFO Relaxed"; |
| 100 | } | 98 | } |
| 101 | return "Unknown"; | 99 | return "Unknown"; |
| @@ -103,11 +101,11 @@ static constexpr const char* TranslateVSyncMode(Settings::VSyncMode mode) { | |||
| 103 | 101 | ||
| 104 | static constexpr const char* TranslateASTCDecodeMode(Settings::AstcDecodeMode mode) { | 102 | static constexpr const char* TranslateASTCDecodeMode(Settings::AstcDecodeMode mode) { |
| 105 | switch (mode) { | 103 | switch (mode) { |
| 106 | case Settings::AstcDecodeMode::CPU: | 104 | case Settings::AstcDecodeMode::Cpu: |
| 107 | return "CPU"; | 105 | return "CPU"; |
| 108 | case Settings::AstcDecodeMode::GPU: | 106 | case Settings::AstcDecodeMode::Gpu: |
| 109 | return "GPU"; | 107 | return "GPU"; |
| 110 | case Settings::AstcDecodeMode::CPUAsynchronous: | 108 | case Settings::AstcDecodeMode::CpuAsynchronous: |
| 111 | return "CPU Asynchronous"; | 109 | return "CPU Asynchronous"; |
| 112 | } | 110 | } |
| 113 | return "Unknown"; | 111 | return "Unknown"; |
| @@ -255,7 +253,7 @@ void TelemetrySession::AddInitialInfo(Loader::AppLoader& app_loader, | |||
| 255 | // Log user configuration information | 253 | // Log user configuration information |
| 256 | constexpr auto field_type = Telemetry::FieldType::UserConfig; | 254 | constexpr auto field_type = Telemetry::FieldType::UserConfig; |
| 257 | AddField(field_type, "Audio_SinkId", | 255 | AddField(field_type, "Audio_SinkId", |
| 258 | Settings::TranslateEnum(Settings::values.sink_id.GetValue())); | 256 | Settings::CanonicalizeEnum(Settings::values.sink_id.GetValue())); |
| 259 | AddField(field_type, "Core_UseMultiCore", Settings::values.use_multi_core.GetValue()); | 257 | AddField(field_type, "Core_UseMultiCore", Settings::values.use_multi_core.GetValue()); |
| 260 | AddField(field_type, "Renderer_Backend", | 258 | AddField(field_type, "Renderer_Backend", |
| 261 | TranslateRenderer(Settings::values.renderer_backend.GetValue())); | 259 | TranslateRenderer(Settings::values.renderer_backend.GetValue())); |