summaryrefslogtreecommitdiffstats
path: root/src/video_core/control/channel_state_cache.inc
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_cache.inc
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_cache.inc')
-rw-r--r--src/video_core/control/channel_state_cache.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/control/channel_state_cache.inc b/src/video_core/control/channel_state_cache.inc
index 31f792ddd..d882d8222 100644
--- a/src/video_core/control/channel_state_cache.inc
+++ b/src/video_core/control/channel_state_cache.inc
@@ -58,6 +58,7 @@ void ChannelSetupCaches<P>::BindToChannel(s32 id) {
maxwell3d = &channel_state->maxwell3d;
kepler_compute = &channel_state->kepler_compute;
gpu_memory = &channel_state->gpu_memory;
+ program_id = channel_state->program_id;
current_address_space = gpu_memory->GetID();
}
@@ -76,6 +77,7 @@ void ChannelSetupCaches<P>::EraseChannel(s32 id) {
maxwell3d = nullptr;
kepler_compute = nullptr;
gpu_memory = nullptr;
+ program_id = 0;
} else if (current_channel_id != UNSET_CHANNEL) {
channel_state = &channel_storage[current_channel_id];
}