summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp16
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h6
2 files changed, 11 insertions, 11 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index 2c43982b0..672eb2990 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -65,9 +65,9 @@ struct FormatTuple {
65 return params; 65 return params;
66} 66}
67 67
68/*static*/ SurfaceParams SurfaceParams::CreateForDepthBuffer( 68/*static*/ SurfaceParams SurfaceParams::CreateForDepthBuffer(u32 zeta_width, u32 zeta_height,
69 const Tegra::Engines::Maxwell3D::Regs::RenderTargetConfig& config, Tegra::GPUVAddr zeta_address, 69 Tegra::GPUVAddr zeta_address,
70 Tegra::DepthFormat format) { 70 Tegra::DepthFormat format) {
71 71
72 SurfaceParams params{}; 72 SurfaceParams params{};
73 params.addr = zeta_address; 73 params.addr = zeta_address;
@@ -77,9 +77,9 @@ struct FormatTuple {
77 params.component_type = ComponentTypeFromDepthFormat(format); 77 params.component_type = ComponentTypeFromDepthFormat(format);
78 params.type = GetFormatType(params.pixel_format); 78 params.type = GetFormatType(params.pixel_format);
79 params.size_in_bytes = params.SizeInBytes(); 79 params.size_in_bytes = params.SizeInBytes();
80 params.width = config.width; 80 params.width = zeta_width;
81 params.height = config.height; 81 params.height = zeta_height;
82 params.unaligned_height = config.height; 82 params.unaligned_height = zeta_height;
83 params.size_in_bytes = params.SizeInBytes(); 83 params.size_in_bytes = params.SizeInBytes();
84 return params; 84 return params;
85} 85}
@@ -519,8 +519,8 @@ SurfaceSurfaceRect_Tuple RasterizerCacheOpenGL::GetFramebufferSurfaces(
519 } 519 }
520 520
521 if (using_depth_fb) { 521 if (using_depth_fb) {
522 depth_params = 522 depth_params = SurfaceParams::CreateForDepthBuffer(regs.zeta_width, regs.zeta_height,
523 SurfaceParams::CreateForDepthBuffer(regs.rt[0], regs.zeta.Address(), regs.zeta.format); 523 regs.zeta.Address(), regs.zeta.format);
524 } 524 }
525 525
526 MathUtil::Rectangle<u32> color_rect{}; 526 MathUtil::Rectangle<u32> color_rect{};
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index 718c45ce1..d00746e8c 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -365,9 +365,9 @@ struct SurfaceParams {
365 const Tegra::Engines::Maxwell3D::Regs::RenderTargetConfig& config); 365 const Tegra::Engines::Maxwell3D::Regs::RenderTargetConfig& config);
366 366
367 /// Creates SurfaceParams for a depth buffer configuration 367 /// Creates SurfaceParams for a depth buffer configuration
368 static SurfaceParams CreateForDepthBuffer( 368 static SurfaceParams CreateForDepthBuffer(u32 zeta_width, u32 zeta_height,
369 const Tegra::Engines::Maxwell3D::Regs::RenderTargetConfig& config, 369 Tegra::GPUVAddr zeta_address,
370 Tegra::GPUVAddr zeta_address, Tegra::DepthFormat format); 370 Tegra::DepthFormat format);
371 371
372 Tegra::GPUVAddr addr; 372 Tegra::GPUVAddr addr;
373 bool is_tiled; 373 bool is_tiled;