summaryrefslogtreecommitdiffstats
path: root/src/video_core/control/channel_state_cache.inc
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-24 04:38:21 +0100
committerLiam <byteslice@airmail.cc>2024-02-26 17:16:14 +0100
commitd66ca8b73145c9e891415f11ce68125ff2b99b9b (patch)
tree70c4d8b3e8aa80222940fe6e490d62bf42bc0443 /src/video_core/control/channel_state_cache.inc
parentMerge pull request #13164 from merryhime/reset-submodules (diff)
downloadyuzu-d66ca8b73145c9e891415f11ce68125ff2b99b9b.tar
yuzu-d66ca8b73145c9e891415f11ce68125ff2b99b9b.tar.gz
yuzu-d66ca8b73145c9e891415f11ce68125ff2b99b9b.tar.bz2
yuzu-d66ca8b73145c9e891415f11ce68125ff2b99b9b.tar.lz
yuzu-d66ca8b73145c9e891415f11ce68125ff2b99b9b.tar.xz
yuzu-d66ca8b73145c9e891415f11ce68125ff2b99b9b.tar.zst
yuzu-d66ca8b73145c9e891415f11ce68125ff2b99b9b.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];
}