diff options
| author | 2020-11-25 14:46:08 -0500 | |
|---|---|---|
| committer | 2020-11-25 14:46:08 -0500 | |
| commit | d52ee6d0a7e5e588e57603d7a62604ba6f58db83 (patch) | |
| tree | 62c175cc689231fa9edca699763fc2ff64cbd8d7 | |
| parent | Refactor MaxwellToSpirvComparison. Use Common::BitCast (diff) | |
| download | yuzu-d52ee6d0a7e5e588e57603d7a62604ba6f58db83.tar.gz yuzu-d52ee6d0a7e5e588e57603d7a62604ba6f58db83.tar.xz yuzu-d52ee6d0a7e5e588e57603d7a62604ba6f58db83.zip | |
cleanup unneeded comments and newlines
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index d6685cd12..1c52f40bb 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | |||
| @@ -2083,16 +2083,12 @@ private: | |||
| 2083 | case Compare::LessOld: | 2083 | case Compare::LessOld: |
| 2084 | return OpFOrdLessThan(t_bool, operand_1, operand_2); | 2084 | return OpFOrdLessThan(t_bool, operand_1, operand_2); |
| 2085 | case Compare::EqualOld: | 2085 | case Compare::EqualOld: |
| 2086 | // Note: not accurate when tested against a unit test | ||
| 2087 | // TODO: confirm if used by games | ||
| 2088 | return OpFOrdEqual(t_bool, operand_1, operand_2); | 2086 | return OpFOrdEqual(t_bool, operand_1, operand_2); |
| 2089 | case Compare::LessEqualOld: | 2087 | case Compare::LessEqualOld: |
| 2090 | return OpFOrdLessThanEqual(t_bool, operand_1, operand_2); | 2088 | return OpFOrdLessThanEqual(t_bool, operand_1, operand_2); |
| 2091 | case Compare::GreaterOld: | 2089 | case Compare::GreaterOld: |
| 2092 | return OpFOrdGreaterThan(t_bool, operand_1, operand_2); | 2090 | return OpFOrdGreaterThan(t_bool, operand_1, operand_2); |
| 2093 | case Compare::NotEqualOld: | 2091 | case Compare::NotEqualOld: |
| 2094 | // Note: not accurate when tested against a unit test | ||
| 2095 | // TODO: confirm if used by games | ||
| 2096 | return OpFOrdNotEqual(t_bool, operand_1, operand_2); | 2092 | return OpFOrdNotEqual(t_bool, operand_1, operand_2); |
| 2097 | case Compare::GreaterEqualOld: | 2093 | case Compare::GreaterEqualOld: |
| 2098 | return OpFOrdGreaterThanEqual(t_bool, operand_1, operand_2); | 2094 | return OpFOrdGreaterThanEqual(t_bool, operand_1, operand_2); |
| @@ -2105,12 +2101,10 @@ private: | |||
| 2105 | if (specialization.alpha_test_func == Maxwell::ComparisonOp::AlwaysOld) { | 2101 | if (specialization.alpha_test_func == Maxwell::ComparisonOp::AlwaysOld) { |
| 2106 | return; | 2102 | return; |
| 2107 | } | 2103 | } |
| 2108 | |||
| 2109 | const Id true_label = OpLabel(); | 2104 | const Id true_label = OpLabel(); |
| 2110 | const Id discard_label = OpLabel(); | 2105 | const Id discard_label = OpLabel(); |
| 2111 | const Id alpha_reference = Constant(t_float, specialization.alpha_test_ref); | 2106 | const Id alpha_reference = Constant(t_float, specialization.alpha_test_ref); |
| 2112 | const Id alpha_value = OpLoad(t_float, pointer); | 2107 | const Id alpha_value = OpLoad(t_float, pointer); |
| 2113 | |||
| 2114 | const Id condition = | 2108 | const Id condition = |
| 2115 | MaxwellToSpirvComparison(specialization.alpha_test_func, alpha_value, alpha_reference); | 2109 | MaxwellToSpirvComparison(specialization.alpha_test_func, alpha_value, alpha_reference); |
| 2116 | 2110 | ||