aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/control/channel_state_cache.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-23 22:38:21 -0500
committerLiam <byteslice@airmail.cc>2024-02-26 11:16:14 -0500
commitd66ca8b73145c9e891415f11ce68125ff2b99b9b (patch)
tree70c4d8b3e8aa80222940fe6e490d62bf42bc0443 /src/video_core/control/channel_state_cache.h
parentf9bfdb15559c7ce447151162af61cc69efcbec01 (diff)
video_core: make gpu context aware of rendering program
Diffstat (limited to 'src/video_core/control/channel_state_cache.h')
-rw-r--r--src/video_core/control/channel_state_cache.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/control/channel_state_cache.h b/src/video_core/control/channel_state_cache.h
index 1dbfda299..7480d60d1 100644
--- a/src/video_core/control/channel_state_cache.h
+++ b/src/video_core/control/channel_state_cache.h
@@ -39,6 +39,7 @@ public:
Tegra::Engines::Maxwell3D& maxwell3d;
Tegra::Engines::KeplerCompute& kepler_compute;
Tegra::MemoryManager& gpu_memory;
+ u64 program_id;
};
template <class P>
@@ -77,9 +78,10 @@ protected:
P* channel_state;
size_t current_channel_id{UNSET_CHANNEL};
size_t current_address_space{};
- Tegra::Engines::Maxwell3D* maxwell3d;
- Tegra::Engines::KeplerCompute* kepler_compute;
- Tegra::MemoryManager* gpu_memory;
+ Tegra::Engines::Maxwell3D* maxwell3d{};
+ Tegra::Engines::KeplerCompute* kepler_compute{};
+ Tegra::MemoryManager* gpu_memory{};
+ u64 program_id{};
std::deque<P> channel_storage;
std::deque<size_t> free_channel_ids;