diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-30 20:28:36 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-09-30 21:10:14 +0200 |
commit | df3799a00899a76a0b4adc9f93af403101b2332d (patch) | |
tree | bd3b39861e43814cfab9c917fbacaff63fc94394 /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | gl_rasterizer_cache: Add check for array rendering to cubemap texture. (diff) | |
download | yuzu-df3799a00899a76a0b4adc9f93af403101b2332d.tar yuzu-df3799a00899a76a0b4adc9f93af403101b2332d.tar.gz yuzu-df3799a00899a76a0b4adc9f93af403101b2332d.tar.bz2 yuzu-df3799a00899a76a0b4adc9f93af403101b2332d.tar.lz yuzu-df3799a00899a76a0b4adc9f93af403101b2332d.tar.xz yuzu-df3799a00899a76a0b4adc9f93af403101b2332d.tar.zst yuzu-df3799a00899a76a0b4adc9f93af403101b2332d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 51eb9b6dd..49025a3fe 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -707,29 +707,6 @@ struct SurfaceParams { return SizeInBytes2D() * depth; } - /** - * Returns the size in bytes of the 2D surface with mipmaps. Each mipmap level proceeds the - * previous with half the width and half the height. Once the size of the next mip reaches 0, we - * are done. - */ - std::size_t SizeInBytes2DWithMipmap() const { - std::size_t size_in_bytes{}; - auto mip_params{*this}; - for (std::size_t level = 0; level < max_mip_level; level++) { - size_in_bytes += mip_params.SizeInBytes2D(); - - mip_params.width /= 2; - mip_params.height /= 2; - - if (!mip_params.width || !mip_params.height) { - break; - } - } - - // TODO(bunnei): This alignup is unverified, but necessary in games tested (e.g. in SMO) - return Common::AlignUp(size_in_bytes, 0x1000); - } - /// Creates SurfaceParams from a texture configuration static SurfaceParams CreateForTexture(const Tegra::Texture::FullTextureInfo& config, const GLShader::SamplerEntry& entry); |