mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Fix GetReadOnlyBackingSpan for non-direct buffers
This was missed in the initial implementation
This commit is contained in:
@ -620,9 +620,13 @@ namespace skyline::gpu {
|
||||
}
|
||||
|
||||
span<u8> Buffer::GetReadOnlyBackingSpan(bool isFirstUsage, const std::function<void()> &flushHostCallback) {
|
||||
std::scoped_lock lock{stateMutex};
|
||||
if (!isDirect) {
|
||||
std::unique_lock lock{stateMutex};
|
||||
if (dirtyState == DirtyState::GpuDirty)
|
||||
SynchronizeGuestImmediate(isFirstUsage, flushHostCallback);
|
||||
} else {
|
||||
RefreshGpuWritesActiveDirect(true, flushHostCallback);
|
||||
}
|
||||
|
||||
return mirror;
|
||||
}
|
||||
|
Reference in New Issue
Block a user