diff options
| author | 2019-04-09 14:13:58 -0400 | |
|---|---|---|
| committer | 2019-04-09 14:13:58 -0400 | |
| commit | cd91e98dabc4faa2f8c508ecbcc11b1086e68b41 (patch) | |
| tree | fb98e47a38a9e4d3b724e7ac408679238d21fd21 /src | |
| parent | Merge pull request #2371 from lioncash/pagetable (diff) | |
| download | yuzu-cd91e98dabc4faa2f8c508ecbcc11b1086e68b41.tar.gz yuzu-cd91e98dabc4faa2f8c508ecbcc11b1086e68b41.tar.xz yuzu-cd91e98dabc4faa2f8c508ecbcc11b1086e68b41.zip | |
Correct Fermi Copy on Linear Textures.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 7a3280620..8c4d0af46 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | |||
| @@ -265,6 +265,10 @@ std::size_t SurfaceParams::InnerMemorySize(bool force_gl, bool layer_only, | |||
| 265 | params.component_type = ComponentTypeFromRenderTarget(config.format); | 265 | params.component_type = ComponentTypeFromRenderTarget(config.format); |
| 266 | params.type = GetFormatType(params.pixel_format); | 266 | params.type = GetFormatType(params.pixel_format); |
| 267 | params.width = config.width; | 267 | params.width = config.width; |
| 268 | if (!params.is_tiled) { | ||
| 269 | const u32 bpp = params.GetFormatBpp() / 8; | ||
| 270 | params.pitch = config.width * bpp; | ||
| 271 | } | ||
| 268 | params.height = config.height; | 272 | params.height = config.height; |
| 269 | params.unaligned_height = config.height; | 273 | params.unaligned_height = config.height; |
| 270 | params.target = SurfaceTarget::Texture2D; | 274 | params.target = SurfaceTarget::Texture2D; |