Only unlock GPU channel state on queue wait if it was previously locked

This commit is contained in:
Billy Laws 2022-11-25 16:23:04 +00:00
parent a5e0a64adc
commit d849875656

View File

@ -359,9 +359,11 @@ namespace skyline::soc::gm20b {
}, [this, &channelLocked]() {
// If we run out of GpEntries to process ensure we submit any remaining GPU work before waiting for more to arrive
Logger::Debug("Finished processing pushbuffer batch");
channelCtx.executor.Submit();
channelCtx.Unlock();
channelLocked = false;
if (channelLocked) {
channelCtx.executor.Submit();
channelCtx.Unlock();
channelLocked = false;
}|
});
} catch (const signal::SignalException &e) {
if (e.signal != SIGINT) {