summaryrefslogtreecommitdiff
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-03-31 19:46:10 -0300
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-22 21:51:25 -0400
commiteaafd53cfedf0c7ae40a3f790af5f0aec63ebd13 (patch)
tree41dd5b44f3f5be33f655fdca736e28c26dfa1b00 /src/shader_recompiler
parentc826220733678198e9aef328a9808b062b06c5df (diff)
shader: Implement LDG .U.128 as .128
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/load_store_memory.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/load_store_memory.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/load_store_memory.cpp
index 748b856c9..71688b1d7 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/load_store_memory.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/load_store_memory.cpp
@@ -118,7 +118,8 @@ void TranslatorVisitor::LDG(u64 insn) {
}
break;
}
- case LoadSize::B128: {
+ case LoadSize::B128:
+ case LoadSize::U128: {
if (!IR::IsAligned(dest_reg, 4)) {
throw NotImplementedException("Unaligned data registers");
}
@@ -128,8 +129,6 @@ void TranslatorVisitor::LDG(u64 insn) {
}
break;
}
- case LoadSize::U128:
- throw NotImplementedException("LDG U.128");
default:
throw NotImplementedException("Invalid LDG size {}", ldg.size.Value());
}