summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-10 05:55:54 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-10 05:57:32 +0200
commita87b16da9a61507363a3239647b639037b7a58bb (patch)
tree835cb02195888fe6add121e0a84894d769f37613 /src/video_core
parentMerge pull request #3623 from ReinUsesLisp/renderdoc-bind-spam (diff)
downloadyuzu-a87b16da9a61507363a3239647b639037b7a58bb.tar
yuzu-a87b16da9a61507363a3239647b639037b7a58bb.tar.gz
yuzu-a87b16da9a61507363a3239647b639037b7a58bb.tar.bz2
yuzu-a87b16da9a61507363a3239647b639037b7a58bb.tar.lz
yuzu-a87b16da9a61507363a3239647b639037b7a58bb.tar.xz
yuzu-a87b16da9a61507363a3239647b639037b7a58bb.tar.zst
yuzu-a87b16da9a61507363a3239647b639037b7a58bb.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/shader/decode/texture.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/video_core/shader/decode/texture.cpp b/src/video_core/shader/decode/texture.cpp
index 48350e042..6c4a1358b 100644
--- a/src/video_core/shader/decode/texture.cpp
+++ b/src/video_core/shader/decode/texture.cpp
@@ -780,20 +780,6 @@ Node4 ShaderIR::GetTldsCode(Instruction instr, TextureType texture_type, bool is
// When lod is used always is in gpr20
const Node lod = lod_enabled ? GetRegister(instr.gpr20) : Immediate(0);
- // Fill empty entries from the guest sampler
- const std::size_t entry_coord_count = GetCoordCount(sampler.GetType());
- if (type_coord_count != entry_coord_count) {
- LOG_WARNING(HW_GPU, "Bound and built texture types mismatch");
-
- // When the size is higher we insert zeroes
- for (std::size_t i = type_coord_count; i < entry_coord_count; ++i) {
- coords.push_back(GetRegister(Register::ZeroIndex));
- }
-
- // Then we ensure the size matches the number of entries (dropping unused values)
- coords.resize(entry_coord_count);
- }
-
Node4 values;
for (u32 element = 0; element < values.size(); ++element) {
auto coords_copy = coords;