diff options
| author | 2015-01-15 18:11:03 -0500 | |
|---|---|---|
| committer | 2015-01-15 18:11:03 -0500 | |
| commit | 4b47ed6194484e6cff264553bb383b7e9c608a9c (patch) | |
| tree | 468b9214a0d0989d8702ba4baee221d5c028e5e7 /src/video_core | |
| parent | Merge pull request #481 from Subv/hm_b (diff) | |
| parent | GPU: Fix buffer overrun in Display Transfers (diff) | |
| download | yuzu-4b47ed6194484e6cff264553bb383b7e9c608a9c.tar.gz yuzu-4b47ed6194484e6cff264553bb383b7e9c608a9c.tar.xz yuzu-4b47ed6194484e6cff264553bb383b7e9c608a9c.zip | |
Merge pull request #482 from yuriks/fix-vblank
Correctness fixes for GPU flipping and interrupts
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 29d220e8d..aa47bd616 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -88,10 +88,8 @@ void RendererOpenGL::SwapBuffers() { | |||
| 88 | void RendererOpenGL::LoadFBToActiveGLTexture(const GPU::Regs::FramebufferConfig& framebuffer, | 88 | void RendererOpenGL::LoadFBToActiveGLTexture(const GPU::Regs::FramebufferConfig& framebuffer, |
| 89 | const TextureInfo& texture) { | 89 | const TextureInfo& texture) { |
| 90 | 90 | ||
| 91 | // TODO: Why are active_fb and the valid framebuffer flipped compared to 3dbrew documentation | ||
| 92 | // and GSP definitions? | ||
| 93 | const VAddr framebuffer_vaddr = Memory::PhysicalToVirtualAddress( | 91 | const VAddr framebuffer_vaddr = Memory::PhysicalToVirtualAddress( |
| 94 | framebuffer.active_fb == 0 ? framebuffer.address_left2 : framebuffer.address_left1); | 92 | framebuffer.active_fb == 0 ? framebuffer.address_left1 : framebuffer.address_left2); |
| 95 | 93 | ||
| 96 | LOG_TRACE(Render_OpenGL, "0x%08x bytes from 0x%08x(%dx%d), fmt %x", | 94 | LOG_TRACE(Render_OpenGL, "0x%08x bytes from 0x%08x(%dx%d), fmt %x", |
| 97 | framebuffer.stride * framebuffer.height, | 95 | framebuffer.stride * framebuffer.height, |