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]() { }, [this, &channelLocked]() {
// If we run out of GpEntries to process ensure we submit any remaining GPU work before waiting for more to arrive // 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"); Logger::Debug("Finished processing pushbuffer batch");
if (channelLocked) {
channelCtx.executor.Submit(); channelCtx.executor.Submit();
channelCtx.Unlock(); channelCtx.Unlock();
channelLocked = false; channelLocked = false;
}|
}); });
} catch (const signal::SignalException &e) { } catch (const signal::SignalException &e) {
if (e.signal != SIGINT) { if (e.signal != SIGINT) {