summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-16 22:51:53 +0200
committerbunnei <bunneidev@gmail.com>2018-10-16 22:51:53 +0200
commit91602de7f27e391c8e322a2670ef9d50a64f7517 (patch)
tree82338c004e99032bf195b173f0c0ea7ed34c4f02 /src/video_core/renderer_opengl/gl_rasterizer.cpp
parentgl_rasterizer_cache: Refactor to only call GetRegionEnd on surface creation. (diff)
downloadyuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar
yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar.gz
yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar.bz2
yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar.lz
yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar.xz
yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar.zst
yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 0485dfb7a..6ce183c25 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -428,7 +428,7 @@ void RasterizerOpenGL::ConfigureFramebuffers(bool using_color_fb, bool using_dep
if (color_surface) {
// Assume that a surface will be written to if it is used as a framebuffer, even if
// the shader doesn't actually write to it.
- color_surface->MarkAsDirty();
+ color_surface->MarkAsModified(true, res_cache);
}
glFramebufferTexture2D(
@@ -445,7 +445,7 @@ void RasterizerOpenGL::ConfigureFramebuffers(bool using_color_fb, bool using_dep
if (color_surface) {
// Assume that a surface will be written to if it is used as a framebuffer, even
// if the shader doesn't actually write to it.
- color_surface->MarkAsDirty();
+ color_surface->MarkAsModified(true, res_cache);
}
buffers[index] = GL_COLOR_ATTACHMENT0 + regs.rt_control.GetMap(index);
@@ -469,7 +469,7 @@ void RasterizerOpenGL::ConfigureFramebuffers(bool using_color_fb, bool using_dep
if (depth_surface) {
// Assume that a surface will be written to if it is used as a framebuffer, even if
// the shader doesn't actually write to it.
- depth_surface->MarkAsDirty();
+ depth_surface->MarkAsModified(true, res_cache);
if (regs.stencil_enable) {
// Attach both depth and stencil
@@ -642,9 +642,6 @@ void RasterizerOpenGL::FlushRegion(VAddr addr, u64 size) {
// Only flush if use_accurate_framebuffers is enabled, as it incurs a performance hit
res_cache.FlushRegion(addr, size);
}
-
- shader_cache.FlushRegion(addr, size);
- buffer_cache.FlushRegion(addr, size);
}
void RasterizerOpenGL::InvalidateRegion(VAddr addr, u64 size) {