diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-02-26 12:44:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 12:44:46 -0500 |
commit | ce62fa6f7b660614e28631f71dfa34e7487aec7f (patch) | |
tree | e8621bebad95bfd2d98147b125395f3545cb2627 /src/video_core/gpu.cpp | |
parent | f9bfdb15559c7ce447151162af61cc69efcbec01 (diff) | |
parent | 25c3bbba0e46d3a3e8648a310e83c3facdb02a5f (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/gpu.cpp')
-rw-r--r-- | src/video_core/gpu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 8e663f2a8..6d0b32339 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -67,8 +67,8 @@ struct GPU::Impl { return CreateChannel(new_channel_id++); } - void InitChannel(Control::ChannelState& to_init) { - to_init.Init(system, gpu); + void InitChannel(Control::ChannelState& to_init, u64 program_id) { + to_init.Init(system, gpu, program_id); to_init.BindRasterizer(rasterizer); rasterizer->InitializeChannel(to_init); } @@ -412,8 +412,8 @@ std::shared_ptr<Control::ChannelState> GPU::AllocateChannel() { return impl->AllocateChannel(); } -void GPU::InitChannel(Control::ChannelState& to_init) { - impl->InitChannel(to_init); +void GPU::InitChannel(Control::ChannelState& to_init, u64 program_id) { + impl->InitChannel(to_init, program_id); } void GPU::BindChannel(s32 channel_id) { |