summaryrefslogtreecommitdiff
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index ca31e2fbd..71b748c74 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -554,9 +554,8 @@ void RasterizerOpenGL::InvalidateRegion(DAddr addr, u64 size, VideoCommon::Cache
554 } 554 }
555} 555}
556 556
557bool RasterizerOpenGL::OnCPUWrite(PAddr p_addr, u64 size) { 557bool RasterizerOpenGL::OnCPUWrite(DAddr addr, u64 size) {
558 MICROPROFILE_SCOPE(OpenGL_CacheManagement); 558 MICROPROFILE_SCOPE(OpenGL_CacheManagement);
559 const DAddr addr = device_memory.GetAddressFromPAddr(p_addr);
560 if (addr == 0 || size == 0) { 559 if (addr == 0 || size == 0) {
561 return false; 560 return false;
562 } 561 }
@@ -577,9 +576,9 @@ bool RasterizerOpenGL::OnCPUWrite(PAddr p_addr, u64 size) {
577 return false; 576 return false;
578} 577}
579 578
580void RasterizerOpenGL::OnCacheInvalidation(PAddr p_addr, u64 size) { 579void RasterizerOpenGL::OnCacheInvalidation(DAddr addr, u64 size) {
581 MICROPROFILE_SCOPE(OpenGL_CacheManagement); 580 MICROPROFILE_SCOPE(OpenGL_CacheManagement);
582 const DAddr addr = device_memory.GetAddressFromPAddr(p_addr); 581
583 if (addr == 0 || size == 0) { 582 if (addr == 0 || size == 0) {
584 return; 583 return;
585 } 584 }