summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-09 05:21:53 +0100
committerbunnei <bunneidev@gmail.com>2019-03-07 03:48:57 +0100
commitaaa373585cd55bd03fcc589d2ad9f749e2cb99d4 (patch)
tree1da617fd05d84d59910d585a6b01af2c89f3ed36 /src/video_core/gpu.cpp
parentgpu: Move command processing to another thread. (diff)
downloadyuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar.gz
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar.bz2
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar.lz
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar.xz
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.tar.zst
yuzu-aaa373585cd55bd03fcc589d2ad9f749e2cb99d4.zip
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 0d7a052dd..08abf8ac9 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -6,14 +6,12 @@
#include "core/core.h"
#include "core/core_timing.h"
#include "core/memory.h"
-#include "core/settings.h"
#include "video_core/engines/fermi_2d.h"
#include "video_core/engines/kepler_compute.h"
#include "video_core/engines/kepler_memory.h"
#include "video_core/engines/maxwell_3d.h"
#include "video_core/engines/maxwell_dma.h"
#include "video_core/gpu.h"
-#include "video_core/gpu_thread.h"
#include "video_core/renderer_base.h"
namespace Tegra {
@@ -39,10 +37,6 @@ GPU::GPU(Core::System& system, VideoCore::RendererBase& renderer) : renderer{ren
kepler_compute = std::make_unique<Engines::KeplerCompute>(*memory_manager);
maxwell_dma = std::make_unique<Engines::MaxwellDMA>(system, rasterizer, *memory_manager);
kepler_memory = std::make_unique<Engines::KeplerMemory>(system, rasterizer, *memory_manager);
-
- if (Settings::values.use_asynchronous_gpu_emulation) {
- gpu_thread = std::make_unique<VideoCommon::GPUThread::ThreadManager>(renderer, *dma_pusher);
- }
}
GPU::~GPU() = default;
@@ -71,48 +65,6 @@ const DmaPusher& GPU::DmaPusher() const {
return *dma_pusher;
}
-void GPU::PushGPUEntries(Tegra::CommandList&& entries) {
- if (Settings::values.use_asynchronous_gpu_emulation) {
- gpu_thread->SubmitList(std::move(entries));
- } else {
- dma_pusher->Push(std::move(entries));
- dma_pusher->DispatchCalls();
- }
-}
-
-void GPU::SwapBuffers(
- std::optional<std::reference_wrapper<const Tegra::FramebufferConfig>> framebuffer) {
- if (Settings::values.use_asynchronous_gpu_emulation) {
- gpu_thread->SwapBuffers(std::move(framebuffer));
- } else {
- renderer.SwapBuffers(std::move(framebuffer));
- }
-}
-
-void GPU::FlushRegion(VAddr addr, u64 size) {
- if (Settings::values.use_asynchronous_gpu_emulation) {
- gpu_thread->FlushRegion(addr, size);
- } else {
- renderer.Rasterizer().FlushRegion(addr, size);
- }
-}
-
-void GPU::InvalidateRegion(VAddr addr, u64 size) {
- if (Settings::values.use_asynchronous_gpu_emulation) {
- gpu_thread->InvalidateRegion(addr, size);
- } else {
- renderer.Rasterizer().InvalidateRegion(addr, size);
- }
-}
-
-void GPU::FlushAndInvalidateRegion(VAddr addr, u64 size) {
- if (Settings::values.use_asynchronous_gpu_emulation) {
- gpu_thread->FlushAndInvalidateRegion(addr, size);
- } else {
- renderer.Rasterizer().FlushAndInvalidateRegion(addr, size);
- }
-}
-
u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
ASSERT(format != RenderTargetFormat::NONE);