summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/maxwell
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-29 07:51:32 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:34 +0200
commitd093522fac5f3f4c2c27d30c9ad93421460792a0 (patch)
treeacf69578ce5e2aaa255538b0ebc58bad707200d5 /src/shader_recompiler/frontend/maxwell
parentspirv: Fix image and image buffer descriptor index usage (diff)
downloadyuzu-d093522fac5f3f4c2c27d30c9ad93421460792a0.tar
yuzu-d093522fac5f3f4c2c27d30c9ad93421460792a0.tar.gz
yuzu-d093522fac5f3f4c2c27d30c9ad93421460792a0.tar.bz2
yuzu-d093522fac5f3f4c2c27d30c9ad93421460792a0.tar.lz
yuzu-d093522fac5f3f4c2c27d30c9ad93421460792a0.tar.xz
yuzu-d093522fac5f3f4c2c27d30c9ad93421460792a0.tar.zst
yuzu-d093522fac5f3f4c2c27d30c9ad93421460792a0.zip
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/surface_load_store.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/surface_load_store.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/surface_load_store.cpp
index e1b8aa8ad..7dc793ad7 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/surface_load_store.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/surface_load_store.cpp
@@ -145,7 +145,7 @@ IR::Value MakeCoords(TranslatorVisitor& v, IR::Reg reg, Type type) {
case Type::ARRAY_2D:
return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1), array(2));
case Type::_3D:
- return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1), v.X(reg + 3));
+ return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1), v.X(reg + 2));
}
throw NotImplementedException("Invalid type {}", type);
}