diff options
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate')
4 files changed, 4 insertions, 7 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_add.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_add.cpp index 19e3401ca..03e7bf047 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_add.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_add.cpp | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | namespace Shader::Maxwell { | 7 | namespace Shader::Maxwell { |
| 8 | namespace { | 8 | namespace { |
| 9 | |||
| 10 | void HADD2(TranslatorVisitor& v, u64 insn, Merge merge, bool ftz, bool sat, bool abs_a, bool neg_a, | 9 | void HADD2(TranslatorVisitor& v, u64 insn, Merge merge, bool ftz, bool sat, bool abs_a, bool neg_a, |
| 11 | Swizzle swizzle_a, bool abs_b, bool neg_b, Swizzle swizzle_b, const IR::U32& src_b) { | 10 | Swizzle swizzle_a, bool abs_b, bool neg_b, Swizzle swizzle_b, const IR::U32& src_b) { |
| 12 | union { | 11 | union { |
| @@ -66,7 +65,7 @@ void HADD2(TranslatorVisitor& v, u64 insn, bool sat, bool abs_b, bool neg_b, Swi | |||
| 66 | HADD2(v, insn, hadd2.merge, hadd2.ftz != 0, sat, hadd2.abs_a != 0, hadd2.neg_a != 0, | 65 | HADD2(v, insn, hadd2.merge, hadd2.ftz != 0, sat, hadd2.abs_a != 0, hadd2.neg_a != 0, |
| 67 | hadd2.swizzle_a, abs_b, neg_b, swizzle_b, src_b); | 66 | hadd2.swizzle_a, abs_b, neg_b, swizzle_b, src_b); |
| 68 | } | 67 | } |
| 69 | } // namespace | 68 | } // Anonymous namespace |
| 70 | 69 | ||
| 71 | void TranslatorVisitor::HADD2_reg(u64 insn) { | 70 | void TranslatorVisitor::HADD2_reg(u64 insn) { |
| 72 | union { | 71 | union { |
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_fused_multiply_add.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_fused_multiply_add.cpp index 2f3996274..8b234bd6a 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_fused_multiply_add.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_fused_multiply_add.cpp | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | namespace Shader::Maxwell { | 7 | namespace Shader::Maxwell { |
| 8 | namespace { | 8 | namespace { |
| 9 | |||
| 10 | void HFMA2(TranslatorVisitor& v, u64 insn, Merge merge, Swizzle swizzle_a, bool neg_b, bool neg_c, | 9 | void HFMA2(TranslatorVisitor& v, u64 insn, Merge merge, Swizzle swizzle_a, bool neg_b, bool neg_c, |
| 11 | Swizzle swizzle_b, Swizzle swizzle_c, const IR::U32& src_b, const IR::U32& src_c, | 10 | Swizzle swizzle_b, Swizzle swizzle_c, const IR::U32& src_b, const IR::U32& src_c, |
| 12 | bool sat, HalfPrecision precision) { | 11 | bool sat, HalfPrecision precision) { |
| @@ -85,8 +84,7 @@ void HFMA2(TranslatorVisitor& v, u64 insn, bool neg_b, bool neg_c, Swizzle swizz | |||
| 85 | HFMA2(v, insn, hfma2.merge, hfma2.swizzle_a, neg_b, neg_c, swizzle_b, swizzle_c, src_b, src_c, | 84 | HFMA2(v, insn, hfma2.merge, hfma2.swizzle_a, neg_b, neg_c, swizzle_b, swizzle_c, src_b, src_c, |
| 86 | sat, precision); | 85 | sat, precision); |
| 87 | } | 86 | } |
| 88 | 87 | } // Anonymous namespace | |
| 89 | } // namespace | ||
| 90 | 88 | ||
| 91 | void TranslatorVisitor::HFMA2_reg(u64 insn) { | 89 | void TranslatorVisitor::HFMA2_reg(u64 insn) { |
| 92 | union { | 90 | union { |
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_multiply.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_multiply.cpp index ff34a8c8f..2451a6ef6 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_multiply.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_multiply.cpp | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | namespace Shader::Maxwell { | 7 | namespace Shader::Maxwell { |
| 8 | namespace { | 8 | namespace { |
| 9 | |||
| 10 | void HMUL2(TranslatorVisitor& v, u64 insn, Merge merge, bool sat, bool abs_a, bool neg_a, | 9 | void HMUL2(TranslatorVisitor& v, u64 insn, Merge merge, bool sat, bool abs_a, bool neg_a, |
| 11 | Swizzle swizzle_a, bool abs_b, bool neg_b, Swizzle swizzle_b, const IR::U32& src_b, | 10 | Swizzle swizzle_a, bool abs_b, bool neg_b, Swizzle swizzle_b, const IR::U32& src_b, |
| 12 | HalfPrecision precision) { | 11 | HalfPrecision precision) { |
| @@ -79,7 +78,7 @@ void HMUL2(TranslatorVisitor& v, u64 insn, bool sat, bool abs_a, bool neg_a, boo | |||
| 79 | HMUL2(v, insn, hmul2.merge, sat, abs_a, neg_a, hmul2.swizzle_a, abs_b, neg_b, swizzle_b, src_b, | 78 | HMUL2(v, insn, hmul2.merge, sat, abs_a, neg_a, hmul2.swizzle_a, abs_b, neg_b, swizzle_b, src_b, |
| 80 | hmul2.precision); | 79 | hmul2.precision); |
| 81 | } | 80 | } |
| 82 | } // namespace | 81 | } // Anonymous namespace |
| 83 | 82 | ||
| 84 | void TranslatorVisitor::HMUL2_reg(u64 insn) { | 83 | void TranslatorVisitor::HMUL2_reg(u64 insn) { |
| 85 | union { | 84 | union { |
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_set.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_set.cpp index 1d28c0531..7f1f4b88c 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_set.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_set.cpp | |||
| @@ -76,6 +76,7 @@ void TranslatorVisitor::HSET2_reg(u64 insn) { | |||
| 76 | BitField<35, 4, FPCompareOp> compare_op; | 76 | BitField<35, 4, FPCompareOp> compare_op; |
| 77 | BitField<28, 2, Swizzle> swizzle_b; | 77 | BitField<28, 2, Swizzle> swizzle_b; |
| 78 | } const hset2{insn}; | 78 | } const hset2{insn}; |
| 79 | |||
| 79 | HSET2(*this, insn, GetReg20(insn), hset2.bf != 0, hset2.ftz != 0, hset2.neg_b != 0, | 80 | HSET2(*this, insn, GetReg20(insn), hset2.bf != 0, hset2.ftz != 0, hset2.neg_b != 0, |
| 80 | hset2.abs_b != 0, hset2.compare_op, hset2.swizzle_b); | 81 | hset2.abs_b != 0, hset2.compare_op, hset2.swizzle_b); |
| 81 | } | 82 | } |