diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-05-08 01:09:34 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-21 02:36:12 +0200 |
commit | 1af4414861fda5cad2549372e65ecda090caf2f8 (patch) | |
tree | 683e4a726b5009d3b39678c8d9fecb4e7a260bf5 /src/video_core/texture_cache/surface_base.h | |
parent | Change texture_cache chaching from GPUAddr to CacheAddr (diff) | |
download | yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar.gz yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar.bz2 yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar.lz yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar.xz yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.tar.zst yuzu-1af4414861fda5cad2549372e65ecda090caf2f8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/surface_base.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/texture_cache/surface_base.h b/src/video_core/texture_cache/surface_base.h index 74be3237d..486585c9c 100644 --- a/src/video_core/texture_cache/surface_base.h +++ b/src/video_core/texture_cache/surface_base.h @@ -282,8 +282,7 @@ public: return {}; } const std::size_t size = view_params.GetGuestSizeInBytes(); - const GPUVAddr relative_address = view_addr - gpu_addr; - auto layer_mipmap = GetLayerMipmap(relative_address); + auto layer_mipmap = GetLayerMipmap(view_addr); if (!layer_mipmap) { return {}; } @@ -298,7 +297,7 @@ public: vp.num_layers = 1; vp.base_level = mipmap; vp.num_levels = 1; - vp.target = params.target; + vp.target = view_params.target; return {GetView(vp)}; } |