diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-20 09:03:33 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-28 04:23:42 +0100 |
commit | fa31e5b86854f98d7db10bf55cc485bd1368b559 (patch) | |
tree | bd54dc3e15103e7e32ad04072fc38c81819c3672 /src/video_core/engines/kepler_compute.cpp | |
parent | video_core/textures: Remove unused index entry in FullTextureInfo (diff) | |
download | yuzu-fa31e5b86854f98d7db10bf55cc485bd1368b559.tar yuzu-fa31e5b86854f98d7db10bf55cc485bd1368b559.tar.gz yuzu-fa31e5b86854f98d7db10bf55cc485bd1368b559.tar.bz2 yuzu-fa31e5b86854f98d7db10bf55cc485bd1368b559.tar.lz yuzu-fa31e5b86854f98d7db10bf55cc485bd1368b559.tar.xz yuzu-fa31e5b86854f98d7db10bf55cc485bd1368b559.tar.zst yuzu-fa31e5b86854f98d7db10bf55cc485bd1368b559.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/kepler_compute.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/video_core/engines/kepler_compute.cpp b/src/video_core/engines/kepler_compute.cpp index 91adef360..3a39aeabe 100644 --- a/src/video_core/engines/kepler_compute.cpp +++ b/src/video_core/engines/kepler_compute.cpp @@ -50,7 +50,7 @@ void KeplerCompute::CallMethod(const GPU::MethodCall& method_call) { } } -Tegra::Texture::FullTextureInfo KeplerCompute::GetTexture(std::size_t offset) const { +Texture::FullTextureInfo KeplerCompute::GetTexture(std::size_t offset) const { const std::bitset<8> cbuf_mask = launch_description.const_buffer_enable_mask.Value(); ASSERT(cbuf_mask[regs.tex_cb_index]); @@ -61,13 +61,11 @@ Tegra::Texture::FullTextureInfo KeplerCompute::GetTexture(std::size_t offset) co ASSERT(address < texinfo.Address() + texinfo.size); const Texture::TextureHandle tex_handle{memory_manager.Read<u32>(address)}; - return GetTextureInfo(tex_handle, offset); + return GetTextureInfo(tex_handle); } -Texture::FullTextureInfo KeplerCompute::GetTextureInfo(const Texture::TextureHandle tex_handle, - std::size_t offset) const { - return Texture::FullTextureInfo{static_cast<u32>(offset), GetTICEntry(tex_handle.tic_id), - GetTSCEntry(tex_handle.tsc_id)}; +Texture::FullTextureInfo KeplerCompute::GetTextureInfo(Texture::TextureHandle tex_handle) const { + return Texture::FullTextureInfo{GetTICEntry(tex_handle.tic_id), GetTSCEntry(tex_handle.tsc_id)}; } u32 KeplerCompute::AccessConstBuffer32(ShaderType stage, u64 const_buffer, u64 offset) const { @@ -89,7 +87,7 @@ SamplerDescriptor KeplerCompute::AccessBindlessSampler(ShaderType stage, u64 con const GPUVAddr tex_info_address = tex_info_buffer.Address() + offset; const Texture::TextureHandle tex_handle{memory_manager.Read<u32>(tex_info_address)}; - const Texture::FullTextureInfo tex_info = GetTextureInfo(tex_handle, offset); + const Texture::FullTextureInfo tex_info = GetTextureInfo(tex_handle); SamplerDescriptor result = SamplerDescriptor::FromTicTexture(tex_info.tic.texture_type.Value()); result.is_shadow.Assign(tex_info.tsc.depth_compare_enabled.Value()); return result; |