Support memsets of framebuffers as uploads.

Technically should clear stencil too... maybe it'd be better to handle
separately.
This commit is contained in:
Unknown W. Brackets 2014-05-26 14:18:06 -07:00
parent 95003cb77d
commit 64f6012dba
3 changed files with 9 additions and 7 deletions

View file

@ -1880,9 +1880,11 @@ bool FramebufferManager::NotifyFramebufferCopy(u32 src, u32 dst, int size) {
}
}
bool actuallyMemset = src == dst;
// TODO: Do ReadFramebufferToMemory etc where applicable.
// This will slow down MotoGP but make the hack above unnecessary.
if (dstBuffer && srcBuffer) {
if (dstBuffer && srcBuffer && !actuallyMemset) {
if (srcBuffer == dstBuffer) {
WARN_LOG_REPORT_ONCE(dstsrccpy, G3D, "Intra-buffer memcpy (not supported) %08x -> %08x", src, dst);
} else {