From 4ea4554ddf7a0795816c4e09fd573191cf35367d Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 11 Jan 2014 09:51:32 -0800 Subject: [PATCH] softgpu: detect a vram-relative display addr. --- GPU/Software/SoftGpu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/Software/SoftGpu.cpp b/GPU/Software/SoftGpu.cpp index 45eeec75af..43522a6339 100644 --- a/GPU/Software/SoftGpu.cpp +++ b/GPU/Software/SoftGpu.cpp @@ -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);