summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2018-04-24 14:45:15 -0400
committerGravatar bunnei2018-04-24 22:31:46 -0400
commit9022d926eb8553f382e215c8b005b7a45358e87c (patch)
tree1d5fca4174c99eb6a317221cab2b7c63c4d3cec9
parentgl_rasterizer_cache: Add a function for finding framebuffer GPU address. (diff)
downloadyuzu-9022d926eb8553f382e215c8b005b7a45358e87c.tar.gz
yuzu-9022d926eb8553f382e215c8b005b7a45358e87c.tar.xz
yuzu-9022d926eb8553f382e215c8b005b7a45358e87c.zip
gl_rasterizer_cache: Use new logger.
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index b924f1b8e..9348b0297 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -94,7 +94,7 @@ void MortonCopy(u32 stride, u32 block_height, u32 height, u8* gl_buffer, Tegra::
94 } else { 94 } else {
95 // TODO(bunnei): Assumes the default rendering GOB size of 16 (128 lines). We should check 95 // TODO(bunnei): Assumes the default rendering GOB size of 16 (128 lines). We should check
96 // the configuration for this and perform more generic un/swizzle 96 // the configuration for this and perform more generic un/swizzle
97 LOG_WARNING(Render_OpenGL, "need to use correct swizzle/GOB parameters!"); 97 NGLOG_WARNING(Render_OpenGL, "need to use correct swizzle/GOB parameters!");
98 VideoCore::MortonCopyPixels128( 98 VideoCore::MortonCopyPixels128(
99 stride, height, bytes_per_pixel, gl_bytes_per_pixel, 99 stride, height, bytes_per_pixel, gl_bytes_per_pixel,
100 Memory::GetPointer(*gpu.memory_manager->GpuToCpuAddress(base)), gl_buffer, 100 Memory::GetPointer(*gpu.memory_manager->GpuToCpuAddress(base)), gl_buffer,
@@ -1112,7 +1112,7 @@ SurfaceSurfaceRect_Tuple RasterizerCacheOpenGL::GetFramebufferSurfaces(
1112 const auto& config = regs.rt[0]; 1112 const auto& config = regs.rt[0];
1113 1113
1114 // TODO(bunnei): This is hard corded to use just the first render buffer 1114 // TODO(bunnei): This is hard corded to use just the first render buffer
1115 LOG_WARNING(Render_OpenGL, "hard-coded for render target 0!"); 1115 NGLOG_WARNING(Render_OpenGL, "hard-coded for render target 0!");
1116 1116
1117 // update resolution_scale_factor and reset cache if changed 1117 // update resolution_scale_factor and reset cache if changed
1118 // TODO (bunnei): This code was ported as-is from Citra, and is technically not thread-safe. We 1118 // TODO (bunnei): This code was ported as-is from Citra, and is technically not thread-safe. We
@@ -1157,8 +1157,8 @@ SurfaceSurfaceRect_Tuple RasterizerCacheOpenGL::GetFramebufferSurfaces(
1157 // Make sure that framebuffers don't overlap if both color and depth are being used 1157 // Make sure that framebuffers don't overlap if both color and depth are being used
1158 if (using_color_fb && using_depth_fb && 1158 if (using_color_fb && using_depth_fb &&
1159 boost::icl::length(color_vp_interval & depth_vp_interval)) { 1159 boost::icl::length(color_vp_interval & depth_vp_interval)) {
1160 LOG_CRITICAL(Render_OpenGL, "Color and depth framebuffer memory regions overlap; " 1160 NGLOG_CRITICAL(Render_OpenGL, "Color and depth framebuffer memory regions overlap; "
1161 "overlapping framebuffers not supported!"); 1161 "overlapping framebuffers not supported!");
1162 using_depth_fb = false; 1162 using_depth_fb = false;
1163 } 1163 }
1164 1164