From 0408b72fd03660c4d8b97d3861971a52bd5f0a94 Mon Sep 17 00:00:00 2001 From: CamilleLaVey Date: Wed, 14 Jan 2026 19:52:21 -0400 Subject: [PATCH] Revert "quick fix for android" --- src/video_core/control/scheduler.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/video_core/control/scheduler.cpp b/src/video_core/control/scheduler.cpp index b9f73328d9..c2267acede 100644 --- a/src/video_core/control/scheduler.cpp +++ b/src/video_core/control/scheduler.cpp @@ -17,14 +17,12 @@ Scheduler::Scheduler(GPU& gpu_) : gpu{gpu_} {} Scheduler::~Scheduler() = default; void Scheduler::Push(s32 channel, CommandList&& entries) { - 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); - } + 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(); channel_state->dma_pusher->Push(std::move(entries)); channel_state->dma_pusher->DispatchCalls(); }