diff --git a/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp b/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp index cbad1d34d..3d9239d39 100644 --- a/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp +++ b/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp @@ -107,7 +107,17 @@ void materializeRegisterClear(const Context& context, const ColorTarget& color, if (CurrentDccKeys(color.dccAddress, color.bytes) != DccKeys::ClearRegister) return; const auto texel = clearTexel(color, DccKeys::ClearRegister); const char* refusal = nullptr; - if (clearToTexel(resident, texel, color.elementBytes, refusal)) { + bool cleared = clearToTexel(resident, texel, color.elementBytes, refusal); + const auto keyBytes = static_cast(color.bytes / 256); + if (!cleared && keyBytes != 0) { + if (auto* recorder = Recorder::Active(); recorder != nullptr && recorder->PendingWriteOverlaps(color.dccAddress, keyBytes)) { + Recorder::CountSync(2); + recorder->SyncThrough(color.dccAddress, keyBytes); + if (CurrentDccKeys(color.dccAddress, color.bytes) != DccKeys::ClearRegister) return; + cleared = clearToTexel(resident, texel, color.elementBytes, refusal); + } + } + if (cleared) { MarkDccUncompressed(context, color.dccAddress, color.bytes); return; }