softgpu: detect a vram-relative display addr.

This commit is contained in:
Unknown W. Brackets committed 2014-01-11 09:51:32 -08:00
1 parent 55fe5a950e
commit 4ea4554ddf
1 file changed
+2 -1
+2 -1
View File
@@ -172,7 +172,8 @@ SoftGPU::~SoftGPU()
}
void SoftGPU::SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format) {
displayFramebuf_ = framebuf;
// Seems like this can point into RAM, but should be VRAM if not in RAM.
displayFramebuf_ = (framebuf & 0xFF000000) == 0 ? 0x44000000 | framebuf : framebuf;
displayStride_ = stride;
displayFormat_ = format;
host->GPUNotifyDisplay(framebuf, stride, format);