From 63d41b1fc0a2deba818c0ab7f349f14f61fec67d Mon Sep 17 00:00:00 2001 From: CamilleLaVey Date: Tue, 13 Jan 2026 19:32:34 -0400 Subject: [PATCH] quick fix for android --- src/video_core/control/scheduler.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/video_core/control/scheduler.cpp b/src/video_core/control/scheduler.cpp index c2267acede..b9f73328d9 100644 --- a/src/video_core/control/scheduler.cpp +++ b/src/video_core/control/scheduler.cpp @@ -17,12 +17,14 @@ Scheduler::Scheduler(GPU& gpu_) : gpu{gpu_} {} Scheduler::~Scheduler() = default; void Scheduler::Push(s32 channel, CommandList&& entries) { - std::unique_lock lk(scheduling_guard); - auto it = channels.find(channel); - ASSERT(it != channels.end()); - auto& channel_state = it->second; - gpu.BindChannel(channel_state->bind_id); - lk.unlock(); + std::shared_ptr channel_state; + { + std::unique_lock lk(scheduling_guard); + auto it = channels.find(channel); + ASSERT(it != channels.end()); + channel_state = it->second; + gpu.BindChannel(channel_state->bind_id); + } channel_state->dma_pusher->Push(std::move(entries)); channel_state->dma_pusher->DispatchCalls(); }