yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #6767 from ReinUsesLisp/fold-float-pack

shader: Fold UnpackFloat2x16 and PackFloat2x16
This commit is contained in:
Morph 2021-07-30 02:07:52 -04:00 committed by GitHub
commit db07ca6c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -649,6 +649,10 @@ void ConstantPropagation(IR::Block& block, IR::Inst& inst) {
return FoldInverseFunc(inst, IR::Opcode::UnpackHalf2x16); return FoldInverseFunc(inst, IR::Opcode::UnpackHalf2x16);
case IR::Opcode::UnpackHalf2x16: case IR::Opcode::UnpackHalf2x16:
return FoldInverseFunc(inst, IR::Opcode::PackHalf2x16); 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::SelectU1:
case IR::Opcode::SelectU8: case IR::Opcode::SelectU8:
case IR::Opcode::SelectU16: case IR::Opcode::SelectU16: