summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-03-21 07:09:14 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:24 +0200
commitc858b8ba97d3ff79dcff0795c1184ee356f2cd1a (patch)
treea6b0c12aebb276c8a475b206941779d8d1af371d /src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp
parentshader: Add FP64 register load/store helpers (diff)
downloadyuzu-c858b8ba97d3ff79dcff0795c1184ee356f2cd1a.tar
yuzu-c858b8ba97d3ff79dcff0795c1184ee356f2cd1a.tar.gz
yuzu-c858b8ba97d3ff79dcff0795c1184ee356f2cd1a.tar.bz2
yuzu-c858b8ba97d3ff79dcff0795c1184ee356f2cd1a.tar.lz
yuzu-c858b8ba97d3ff79dcff0795c1184ee356f2cd1a.tar.xz
yuzu-c858b8ba97d3ff79dcff0795c1184ee356f2cd1a.tar.zst
yuzu-c858b8ba97d3ff79dcff0795c1184ee356f2cd1a.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp
index 2d2f6f9c6..758a0230a 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp
@@ -90,6 +90,14 @@ IR::F64 TranslatorVisitor::GetDoubleReg20(u64 insn) {
return D(reg.index);
}
+IR::F64 TranslatorVisitor::GetDoubleReg39(u64 insn) {
+ union {
+ u64 raw;
+ BitField<39, 8, IR::Reg> index;
+ } const reg{insn};
+ return D(reg.index);
+}
+
static std::pair<IR::U32, IR::U32> CbufAddr(u64 insn) {
union {
u64 raw;