Avoid redundant GPU-dirty propagation for direct buffer recreation

This commit is contained in:
Billy Laws 2023-02-04 21:02:27 +00:00
parent 4a3a40aa40
commit a65aa28df2

View File

@ -126,7 +126,7 @@ namespace skyline::gpu {
copyBuffer(*newBuffer->guest, *srcBuffer->guest, newBuffer->backing->data(), srcBuffer->backing->data());
}
} else {
if (srcBuffer->directGpuWritesActive) {
if (srcBuffer->RefreshGpuWritesActiveDirect(false, {})) {
newBuffer->MarkGpuDirtyImpl();
} else if (srcBuffer->directTrackedShadowActive) {
newBuffer->EnableTrackedShadowDirect();