diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-12 02:59:59 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-09-06 01:35:51 +0200 |
commit | 2424eefad20b018bed72a0427cdeeabb08bea7b2 (patch) | |
tree | 653458a597ab5f7a5b2594a4d5814a83907b0292 /src/video_core/texture_cache/texture_cache.h | |
parent | kepler_compute: Implement texture queries (diff) | |
download | yuzu-2424eefad20b018bed72a0427cdeeabb08bea7b2.tar yuzu-2424eefad20b018bed72a0427cdeeabb08bea7b2.tar.gz yuzu-2424eefad20b018bed72a0427cdeeabb08bea7b2.tar.bz2 yuzu-2424eefad20b018bed72a0427cdeeabb08bea7b2.tar.lz yuzu-2424eefad20b018bed72a0427cdeeabb08bea7b2.tar.xz yuzu-2424eefad20b018bed72a0427cdeeabb08bea7b2.tar.zst yuzu-2424eefad20b018bed72a0427cdeeabb08bea7b2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 2ec0203d1..623cce068 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -89,14 +89,14 @@ public: } } - TView GetTextureSurface(const Tegra::Texture::FullTextureInfo& config, - const VideoCommon::Shader::Sampler& entry) { + TView GetImageSurface(const Tegra::Texture::TICEntry& tic, + const VideoCommon::Shader::Sampler& entry) { std::lock_guard lock{mutex}; - const auto gpu_addr{config.tic.Address()}; + const auto gpu_addr{tic.Address()}; if (!gpu_addr) { return {}; } - const auto params{SurfaceParams::CreateForTexture(system, config, entry)}; + const auto params{SurfaceParams::CreateForImage(tic, entry)}; const auto [surface, view] = GetSurface(gpu_addr, params, true, false); if (guard_samplers) { sampled_textures.push_back(surface); |