gpu: Refactor a/synchronous implementations into their own classes.

This commit is contained in:
bunnei 2019-02-08 23:21:53 -05:00
parent 7b574f406b
commit aaa373585c
8 changed files with 162 additions and 65 deletions

View file

@ -36,7 +36,8 @@
#include "frontend/applets/software_keyboard.h"
#include "frontend/applets/web_browser.h"
#include "video_core/debug_utils/debug_utils.h"
#include "video_core/gpu.h"
#include "video_core/gpu_asynch.h"
#include "video_core/gpu_synch.h"
#include "video_core/renderer_base.h"
#include "video_core/video_core.h"
@ -131,7 +132,11 @@ struct System::Impl {
is_powered_on = true;
gpu_core = std::make_unique<Tegra::GPU>(system, *renderer);
if (Settings::values.use_asynchronous_gpu_emulation) {
gpu_core = std::make_unique<VideoCommon::GPUAsynch>(system, *renderer);
} else {
gpu_core = std::make_unique<VideoCommon::GPUSynch>(system, *renderer);
}
cpu_core_manager.Initialize(system);