summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-02 23:50:34 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:34 +0200
commitec9a78885e6a07b5259c9fbec19d9756443651b1 (patch)
tree1d8d00853c7c0692ec1608499bfcfdc1846a1b88
parentvk_buffer_cache: Handle null texture buffers (diff)
downloadyuzu-ec9a78885e6a07b5259c9fbec19d9756443651b1.tar
yuzu-ec9a78885e6a07b5259c9fbec19d9756443651b1.tar.gz
yuzu-ec9a78885e6a07b5259c9fbec19d9756443651b1.tar.bz2
yuzu-ec9a78885e6a07b5259c9fbec19d9756443651b1.tar.lz
yuzu-ec9a78885e6a07b5259c9fbec19d9756443651b1.tar.xz
yuzu-ec9a78885e6a07b5259c9fbec19d9756443651b1.tar.zst
yuzu-ec9a78885e6a07b5259c9fbec19d9756443651b1.zip
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/surface_atomic_operations.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/surface_atomic_operations.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/surface_atomic_operations.cpp
index 994bdc3eb..44144f154 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/surface_atomic_operations.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/surface_atomic_operations.cpp
@@ -76,6 +76,10 @@ IR::Value MakeCoords(TranslatorVisitor& v, IR::Reg reg, Type type) {
case Type::_1D:
case Type::BUFFER_1D:
return v.X(reg);
+ case Type::_2D:
+ return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1));
+ case Type::_3D:
+ return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1), v.X(reg + 2));
default:
break;
}