aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/control/channel_state_cache.inc
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-26 12:44:46 -0500
committerGitHub <noreply@github.com>2024-02-26 12:44:46 -0500
commitce62fa6f7b660614e28631f71dfa34e7487aec7f (patch)
treee8621bebad95bfd2d98147b125395f3545cb2627 /src/video_core/control/channel_state_cache.inc
parentf9bfdb15559c7ce447151162af61cc69efcbec01 (diff)
parent25c3bbba0e46d3a3e8648a310e83c3facdb02a5f (diff)
Merge pull request #13149 from liamwhite/per-channel-program
video_core: make gpu context aware of rendering program
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];
}