diff options
author | bunnei <bunneidev@gmail.com> | 2019-01-30 18:35:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-30 18:35:56 +0100 |
commit | 92b18345a898d8f373ea7d23050b2c36d3d88103 (patch) | |
tree | badb452a20aa6d0ed2546ad8f989a7df3b07c733 /src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | |
parent | Merge pull request #2070 from ReinUsesLisp/cubearray-view (diff) | |
parent | Add more info into textures' object labels (diff) | |
download | yuzu-92b18345a898d8f373ea7d23050b2c36d3d88103.tar yuzu-92b18345a898d8f373ea7d23050b2c36d3d88103.tar.gz yuzu-92b18345a898d8f373ea7d23050b2c36d3d88103.tar.bz2 yuzu-92b18345a898d8f373ea7d23050b2c36d3d88103.tar.lz yuzu-92b18345a898d8f373ea7d23050b2c36d3d88103.tar.xz yuzu-92b18345a898d8f373ea7d23050b2c36d3d88103.tar.zst yuzu-92b18345a898d8f373ea7d23050b2c36d3d88103.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index c44e2aca2..2b9c4628f 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -128,6 +128,7 @@ std::size_t SurfaceParams::InnerMemorySize(bool force_gl, bool layer_only, params.height = Common::AlignUp(config.tic.Height(), GetCompressionFactor(params.pixel_format)); params.unaligned_height = config.tic.Height(); params.target = SurfaceTargetFromTextureType(config.tic.texture_type); + params.identity = SurfaceClass::Uploaded; switch (params.target) { case SurfaceTarget::Texture1D: @@ -195,6 +196,7 @@ std::size_t SurfaceParams::InnerMemorySize(bool force_gl, bool layer_only, params.height = config.height; params.unaligned_height = config.height; params.target = SurfaceTarget::Texture2D; + params.identity = SurfaceClass::RenderTarget; params.depth = 1; params.max_mip_level = 1; params.is_layered = false; @@ -230,6 +232,7 @@ std::size_t SurfaceParams::InnerMemorySize(bool force_gl, bool layer_only, params.height = zeta_height; params.unaligned_height = zeta_height; params.target = SurfaceTarget::Texture2D; + params.identity = SurfaceClass::DepthBuffer; params.depth = 1; params.max_mip_level = 1; params.is_layered = false; @@ -258,6 +261,7 @@ std::size_t SurfaceParams::InnerMemorySize(bool force_gl, bool layer_only, params.height = config.height; params.unaligned_height = config.height; params.target = SurfaceTarget::Texture2D; + params.identity = SurfaceClass::Copy; params.depth = 1; params.max_mip_level = 1; params.rt = {}; @@ -575,8 +579,7 @@ CachedSurface::CachedSurface(const SurfaceParams& params) ApplyTextureDefaults(SurfaceTargetToGL(params.target), params.max_mip_level); - LabelGLObject(GL_TEXTURE, texture.handle, params.addr, - SurfaceParams::SurfaceTargetName(params.target)); + OpenGL::LabelGLObject(GL_TEXTURE, texture.handle, params.addr, params.IdentityString()); // Clamp size to mapped GPU memory region // TODO(bunnei): Super Mario Odyssey maps a 0x40000 byte region and then uses it for a 0x80000 |