summaryrefslogtreecommitdiffstats
path: root/src/video_core/control/channel_state.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-26 18:44:46 +0100
committerGitHub <noreply@github.com>2024-02-26 18:44:46 +0100
commitce62fa6f7b660614e28631f71dfa34e7487aec7f (patch)
treee8621bebad95bfd2d98147b125395f3545cb2627 /src/video_core/control/channel_state.cpp
parentMerge pull request #13164 from merryhime/reset-submodules (diff)
parentsettings: remove global override for smash on amdvlk (diff)
downloadyuzu-ce62fa6f7b660614e28631f71dfa34e7487aec7f.tar
yuzu-ce62fa6f7b660614e28631f71dfa34e7487aec7f.tar.gz
yuzu-ce62fa6f7b660614e28631f71dfa34e7487aec7f.tar.bz2
yuzu-ce62fa6f7b660614e28631f71dfa34e7487aec7f.tar.lz
yuzu-ce62fa6f7b660614e28631f71dfa34e7487aec7f.tar.xz
yuzu-ce62fa6f7b660614e28631f71dfa34e7487aec7f.tar.zst
yuzu-ce62fa6f7b660614e28631f71dfa34e7487aec7f.zip
Diffstat (limited to 'src/video_core/control/channel_state.cpp')
-rw-r--r--src/video_core/control/channel_state.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/control/channel_state.cpp b/src/video_core/control/channel_state.cpp
index 832025d75..2539997d5 100644
--- a/src/video_core/control/channel_state.cpp
+++ b/src/video_core/control/channel_state.cpp
@@ -16,8 +16,9 @@ namespace Tegra::Control {
ChannelState::ChannelState(s32 bind_id_) : bind_id{bind_id_}, initialized{} {}
-void ChannelState::Init(Core::System& system, GPU& gpu) {
+void ChannelState::Init(Core::System& system, GPU& gpu, u64 program_id_) {
ASSERT(memory_manager);
+ program_id = program_id_;
dma_pusher = std::make_unique<Tegra::DmaPusher>(system, gpu, *memory_manager, *this);
maxwell_3d = std::make_unique<Engines::Maxwell3D>(system, *memory_manager);
fermi_2d = std::make_unique<Engines::Fermi2D>(*memory_manager);