summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/maxwell/translate/impl/texture_load.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-03-29 06:08:25 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:25 +0200
commitcb6fc03e55e9eff0826173a6bcacef3034322f7c (patch)
tree6d9488a0ad2c6a28d52e3be72386bfe0770ce09e /src/shader_recompiler/frontend/maxwell/translate/impl/texture_load.cpp
parentshader: Implement TXD (diff)
downloadyuzu-cb6fc03e55e9eff0826173a6bcacef3034322f7c.tar
yuzu-cb6fc03e55e9eff0826173a6bcacef3034322f7c.tar.gz
yuzu-cb6fc03e55e9eff0826173a6bcacef3034322f7c.tar.bz2
yuzu-cb6fc03e55e9eff0826173a6bcacef3034322f7c.tar.lz
yuzu-cb6fc03e55e9eff0826173a6bcacef3034322f7c.tar.xz
yuzu-cb6fc03e55e9eff0826173a6bcacef3034322f7c.tar.zst
yuzu-cb6fc03e55e9eff0826173a6bcacef3034322f7c.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/texture_load.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/texture_load.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/texture_load.cpp
index b4063fa6e..df38f87a3 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/texture_load.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/texture_load.cpp
@@ -124,6 +124,8 @@ void Impl(TranslatorVisitor& v, u64 insn, bool is_bindless) {
}
if (tld.lod != 0) {
lod = v.X(meta_reg++);
+ } else {
+ lod = v.ir.Imm32(0U);
}
if (tld.aoffi != 0) {
offset = MakeOffset(v, meta_reg, tld.type);