summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-07-30 08:07:52 +0200
committerGitHub <noreply@github.com>2021-07-30 08:07:52 +0200
commitdb07ca6c7f3fe5f1c413848ebc98552982f9d6a8 (patch)
tree7b461044b1dc1f722e275431b6485fd5b3272279 /src
parentMerge pull request #6722 from ReinUsesLisp/xmad-opts (diff)
parentshader: Fold UnpackFloat2x16 and PackFloat2x16 (diff)
downloadyuzu-db07ca6c7f3fe5f1c413848ebc98552982f9d6a8.tar
yuzu-db07ca6c7f3fe5f1c413848ebc98552982f9d6a8.tar.gz
yuzu-db07ca6c7f3fe5f1c413848ebc98552982f9d6a8.tar.bz2
yuzu-db07ca6c7f3fe5f1c413848ebc98552982f9d6a8.tar.lz
yuzu-db07ca6c7f3fe5f1c413848ebc98552982f9d6a8.tar.xz
yuzu-db07ca6c7f3fe5f1c413848ebc98552982f9d6a8.tar.zst
yuzu-db07ca6c7f3fe5f1c413848ebc98552982f9d6a8.zip
Diffstat (limited to 'src')
-rw-r--r--src/shader_recompiler/ir_opt/constant_propagation_pass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp
index c403a5fae..d089fdd12 100644
--- a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp
+++ b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp
@@ -649,6 +649,10 @@ void ConstantPropagation(IR::Block& block, IR::Inst& inst) {
return FoldInverseFunc(inst, IR::Opcode::UnpackHalf2x16);
case IR::Opcode::UnpackHalf2x16:
return FoldInverseFunc(inst, IR::Opcode::PackHalf2x16);
+ case IR::Opcode::PackFloat2x16:
+ return FoldInverseFunc(inst, IR::Opcode::UnpackFloat2x16);
+ case IR::Opcode::UnpackFloat2x16:
+ return FoldInverseFunc(inst, IR::Opcode::PackFloat2x16);
case IR::Opcode::SelectU1:
case IR::Opcode::SelectU8:
case IR::Opcode::SelectU16: