summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorameerj <aj662@drexel.edu>2020-11-25 20:46:08 +0100
committerameerj <aj662@drexel.edu>2020-11-25 20:46:08 +0100
commitd52ee6d0a7e5e588e57603d7a62604ba6f58db83 (patch)
tree62c175cc689231fa9edca699763fc2ff64cbd8d7 /src
parentRefactor MaxwellToSpirvComparison. Use Common::BitCast (diff)
downloadyuzu-d52ee6d0a7e5e588e57603d7a62604ba6f58db83.tar
yuzu-d52ee6d0a7e5e588e57603d7a62604ba6f58db83.tar.gz
yuzu-d52ee6d0a7e5e588e57603d7a62604ba6f58db83.tar.bz2
yuzu-d52ee6d0a7e5e588e57603d7a62604ba6f58db83.tar.lz
yuzu-d52ee6d0a7e5e588e57603d7a62604ba6f58db83.tar.xz
yuzu-d52ee6d0a7e5e588e57603d7a62604ba6f58db83.tar.zst
yuzu-d52ee6d0a7e5e588e57603d7a62604ba6f58db83.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_vulkan/vk_shader_decompiler.cpp6
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:
case Compare::LessOld:
return OpFOrdLessThan(t_bool, operand_1, operand_2);
case Compare::EqualOld:
- // Note: not accurate when tested against a unit test
- // TODO: confirm if used by games
return OpFOrdEqual(t_bool, operand_1, operand_2);
case Compare::LessEqualOld:
return OpFOrdLessThanEqual(t_bool, operand_1, operand_2);
case Compare::GreaterOld:
return OpFOrdGreaterThan(t_bool, operand_1, operand_2);
case Compare::NotEqualOld:
- // Note: not accurate when tested against a unit test
- // TODO: confirm if used by games
return OpFOrdNotEqual(t_bool, operand_1, operand_2);
case Compare::GreaterEqualOld:
return OpFOrdGreaterThanEqual(t_bool, operand_1, operand_2);
@@ -2105,12 +2101,10 @@ private:
if (specialization.alpha_test_func == Maxwell::ComparisonOp::AlwaysOld) {
return;
}
-
const Id true_label = OpLabel();
const Id discard_label = OpLabel();
const Id alpha_reference = Constant(t_float, specialization.alpha_test_ref);
const Id alpha_value = OpLoad(t_float, pointer);
-
const Id condition =
MaxwellToSpirvComparison(specialization.alpha_test_func, alpha_value, alpha_reference);