mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 14:30:27 +02:00
softgpu: detect a vram-relative display addr.
This commit is contained in:
1 parent
55fe5a950e
commit
4ea4554ddf
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user