diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-31 02:08:43 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-31 19:07:28 +0200 |
commit | 123c065086106ba7d405c554ab27ca738941d872 (patch) | |
tree | 3d0a3977813e3698e558c87e5b8ace6a459c5bbb /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | rasterizer_cache: Use boost::interval_map for a more accurate cache. (diff) | |
download | yuzu-123c065086106ba7d405c554ab27ca738941d872.tar yuzu-123c065086106ba7d405c554ab27ca738941d872.tar.gz yuzu-123c065086106ba7d405c554ab27ca738941d872.tar.bz2 yuzu-123c065086106ba7d405c554ab27ca738941d872.tar.lz yuzu-123c065086106ba7d405c554ab27ca738941d872.tar.xz yuzu-123c065086106ba7d405c554ab27ca738941d872.tar.zst yuzu-123c065086106ba7d405c554ab27ca738941d872.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index f381e735f..aad75f200 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -650,18 +650,6 @@ struct SurfaceParams { Tegra::GPUVAddr zeta_address, Tegra::DepthFormat format); - bool operator==(const SurfaceParams& other) const { - return std::tie(addr, is_tiled, block_height, pixel_format, component_type, type, width, - height, unaligned_height, size_in_bytes) == - std::tie(other.addr, other.is_tiled, other.block_height, other.pixel_format, - other.component_type, other.type, other.width, other.height, - other.unaligned_height, other.size_in_bytes); - } - - bool operator!=(const SurfaceParams& other) const { - return !operator==(other); - } - /// Checks if surfaces are compatible for caching bool IsCompatibleSurface(const SurfaceParams& other) const { return std::tie(pixel_format, type, cache_width, cache_height) == @@ -767,6 +755,9 @@ private: void LoadSurface(const Surface& surface); Surface GetSurface(const SurfaceParams& params, bool preserve_contents = true); + /// Gets an uncached surface, creating it if need be + Surface GetUncachedSurface(const SurfaceParams& params); + /// Recreates a surface with new parameters Surface RecreateSurface(const Surface& surface, const SurfaceParams& new_params); |