1
0
Fork 0
forked from suyu/suyu

renderer_opengl: Only invalidate the framebuffer region, not flush.

This commit is contained in:
bunnei 2018-03-23 15:52:14 -04:00
parent 054393917e
commit 0f8401906b

View file

@ -141,11 +141,10 @@ void RendererOpenGL::LoadFBToScreenInfo(const Tegra::FramebufferConfig& framebuf
const u64 size_in_bytes{framebuffer.stride * framebuffer.height * bytes_per_pixel};
const VAddr framebuffer_addr{framebuffer.address + framebuffer.offset};
// TODO(bunnei): The framebuffer region should only be flushed and invalidated if it is
// written to, not every frame. When we find the right place for this, the below line can be
// removed.
// TODO(bunnei): The framebuffer region should only be invalidated if it is written to, not
// every frame. When we find the right place for this, the below line can be removed.
Memory::RasterizerFlushVirtualRegion(framebuffer_addr, size_in_bytes,
Memory::FlushMode::FlushAndInvalidate);
Memory::FlushMode::Invalidate);
// Framebuffer orientation handling
framebuffer_transform_flags = framebuffer.transform_flags;