Merge pull request #4294 from MerryMage/cpu-opt-settings

configuration: Add settings to enable/disable specific CPU optimizations
This commit is contained in:
bunnei 2020-07-14 12:38:03 -04:00 committed by GitHub
commit e2730372b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 686 additions and 30 deletions

View file

@ -357,6 +357,11 @@ enum class GPUAccuracy : u32 {
Extreme = 2,
};
enum class CPUAccuracy {
Accurate = 0,
DebugMode = 1,
};
extern bool configuring_global;
template <typename Type>
@ -402,6 +407,18 @@ struct Values {
// Core
Setting<bool> use_multi_core;
// Cpu
CPUAccuracy cpu_accuracy;
bool cpuopt_page_tables;
bool cpuopt_block_linking;
bool cpuopt_return_stack_buffer;
bool cpuopt_fast_dispatcher;
bool cpuopt_context_elimination;
bool cpuopt_const_prop;
bool cpuopt_misc_ir;
bool cpuopt_reduce_misalign_checks;
// Renderer
Setting<RendererBackend> renderer_backend;
bool renderer_debug;
@ -476,7 +493,6 @@ struct Values {
bool dump_nso;
bool reporting_services;
bool quest_flag;
bool disable_cpu_opt;
bool disable_macro_jit;
// Misceallaneous