summaryrefslogtreecommitdiff
path: root/src/video_core/cdma_pusher.cpp
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2022-01-30 22:26:01 +0100
committerGravatar Fernando Sahmkow2022-10-06 21:00:52 +0200
commit2931101e6f5aa755566ef40f6e6dc71909fd3e92 (patch)
tree76e847786e355e24a136562d42177b895a03315e /src/video_core/cdma_pusher.cpp
parentVideoCore: Refactor syncing. (diff)
downloadyuzu-2931101e6f5aa755566ef40f6e6dc71909fd3e92.tar.gz
yuzu-2931101e6f5aa755566ef40f6e6dc71909fd3e92.tar.xz
yuzu-2931101e6f5aa755566ef40f6e6dc71909fd3e92.zip
NVDRV: Refactor Host1x
Diffstat (limited to 'src/video_core/cdma_pusher.cpp')
-rw-r--r--src/video_core/cdma_pusher.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/cdma_pusher.cpp b/src/video_core/cdma_pusher.cpp
index 148126347..28a2d2090 100644
--- a/src/video_core/cdma_pusher.cpp
+++ b/src/video_core/cdma_pusher.cpp
@@ -4,8 +4,8 @@
4#include <bit> 4#include <bit>
5#include "video_core/cdma_pusher.h" 5#include "video_core/cdma_pusher.h"
6#include "video_core/engines/maxwell_3d.h" 6#include "video_core/engines/maxwell_3d.h"
7#include "video_core/gpu.h"
8#include "video_core/host1x/control.h" 7#include "video_core/host1x/control.h"
8#include "video_core/host1x/host1x.h"
9#include "video_core/host1x/nvdec.h" 9#include "video_core/host1x/nvdec.h"
10#include "video_core/host1x/nvdec_common.h" 10#include "video_core/host1x/nvdec_common.h"
11#include "video_core/host1x/sync_manager.h" 11#include "video_core/host1x/sync_manager.h"
@@ -13,11 +13,11 @@
13#include "video_core/memory_manager.h" 13#include "video_core/memory_manager.h"
14 14
15namespace Tegra { 15namespace Tegra {
16CDmaPusher::CDmaPusher(GPU& gpu_) 16CDmaPusher::CDmaPusher(Host1x::Host1x& host1x_)
17 : gpu{gpu_}, nvdec_processor(std::make_shared<Host1x::Nvdec>(gpu)), 17 : host1x{host1x_}, nvdec_processor(std::make_shared<Host1x::Nvdec>(host1x)),
18 vic_processor(std::make_unique<Host1x::Vic>(gpu, nvdec_processor)), 18 vic_processor(std::make_unique<Host1x::Vic>(host1x, nvdec_processor)),
19 host1x_processor(std::make_unique<Host1x::Control>(gpu)), 19 host1x_processor(std::make_unique<Host1x::Control>(host1x)),
20 sync_manager(std::make_unique<Host1x::SyncptIncrManager>(gpu)) {} 20 sync_manager(std::make_unique<Host1x::SyncptIncrManager>(host1x)) {}
21 21
22CDmaPusher::~CDmaPusher() = default; 22CDmaPusher::~CDmaPusher() = default;
23 23