diff options
| author | 2021-07-30 02:07:52 -0400 | |
|---|---|---|
| committer | 2021-07-30 02:07:52 -0400 | |
| commit | db07ca6c7f3fe5f1c413848ebc98552982f9d6a8 (patch) | |
| tree | 7b461044b1dc1f722e275431b6485fd5b3272279 /src/shader_recompiler/ir_opt/constant_propagation_pass.cpp | |
| parent | Merge pull request #6722 from ReinUsesLisp/xmad-opts (diff) | |
| parent | shader: Fold UnpackFloat2x16 and PackFloat2x16 (diff) | |
| download | yuzu-db07ca6c7f3fe5f1c413848ebc98552982f9d6a8.tar.gz yuzu-db07ca6c7f3fe5f1c413848ebc98552982f9d6a8.tar.xz yuzu-db07ca6c7f3fe5f1c413848ebc98552982f9d6a8.zip | |
Merge pull request #6767 from ReinUsesLisp/fold-float-pack
shader: Fold UnpackFloat2x16 and PackFloat2x16
Diffstat (limited to 'src/shader_recompiler/ir_opt/constant_propagation_pass.cpp')
| -rw-r--r-- | src/shader_recompiler/ir_opt/constant_propagation_pass.cpp | 4 |
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) { | |||
| 649 | return FoldInverseFunc(inst, IR::Opcode::UnpackHalf2x16); | 649 | return FoldInverseFunc(inst, IR::Opcode::UnpackHalf2x16); |
| 650 | case IR::Opcode::UnpackHalf2x16: | 650 | case IR::Opcode::UnpackHalf2x16: |
| 651 | return FoldInverseFunc(inst, IR::Opcode::PackHalf2x16); | 651 | return FoldInverseFunc(inst, IR::Opcode::PackHalf2x16); |
| 652 | case IR::Opcode::PackFloat2x16: | ||
| 653 | return FoldInverseFunc(inst, IR::Opcode::UnpackFloat2x16); | ||
| 654 | case IR::Opcode::UnpackFloat2x16: | ||
| 655 | return FoldInverseFunc(inst, IR::Opcode::PackFloat2x16); | ||
| 652 | case IR::Opcode::SelectU1: | 656 | case IR::Opcode::SelectU1: |
| 653 | case IR::Opcode::SelectU8: | 657 | case IR::Opcode::SelectU8: |
| 654 | case IR::Opcode::SelectU16: | 658 | case IR::Opcode::SelectU16: |