Keep track of buffer dirtiness within an execution

This commit is contained in:
Billy Laws
2023-02-12 20:21:16 +00:00
parent 6ea1483c9a
commit 2d97b9fc2c
2 changed files with 12 additions and 0 deletions

View File

@ -430,6 +430,8 @@ namespace skyline::gpu {
if (!guest)
return;
currentExecutionGpuDirty = true;
if (isDirect)
MarkGpuDirtyImplDirect();
else
@ -648,6 +650,7 @@ namespace skyline::gpu {
void Buffer::unlock() {
tag = ContextTag{};
AllowAllBackingWrites();
currentExecutionGpuDirty = false;
mutex.unlock();
}