summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2018-12-23 01:34:13 -0300
committerGravatar ReinUsesLisp2019-01-15 17:54:52 -0300
commitd6f76307febaa2deb05112bb2c29ed667210ee2b (patch)
tree795391d4e3e94847da094aa39c01d3fdcaaaf9a2
parentshader_decode: Implement POPC (diff)
downloadyuzu-d6f76307febaa2deb05112bb2c29ed667210ee2b.tar.gz
yuzu-d6f76307febaa2deb05112bb2c29ed667210ee2b.tar.xz
yuzu-d6f76307febaa2deb05112bb2c29ed667210ee2b.zip
glsl_decompiler: Remove HNegate inlining
-rw-r--r--src/video_core/shader/glsl_decompiler.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/video_core/shader/glsl_decompiler.cpp b/src/video_core/shader/glsl_decompiler.cpp
index 1aff62882..abc9a556d 100644
--- a/src/video_core/shader/glsl_decompiler.cpp
+++ b/src/video_core/shader/glsl_decompiler.cpp
@@ -915,16 +915,6 @@ private:
915 915
916 std::string HNegate(Operation operation) { 916 std::string HNegate(Operation operation) {
917 const auto GetNegate = [&](std::size_t index) -> std::string { 917 const auto GetNegate = [&](std::size_t index) -> std::string {
918 if (const auto pred = std::get_if<PredicateNode>(operation[index])) {
919 if (!pred->IsNegated()) {
920 switch (pred->GetIndex()) {
921 case Tegra::Shader::Pred::UnusedIndex:
922 return "-1";
923 case Tegra::Shader::Pred::NeverExecute:
924 return "1";
925 }
926 }
927 }
928 return VisitOperand(operation, index, Type::Bool) + " ? -1 : 1"; 918 return VisitOperand(operation, index, Type::Bool) + " ? -1 : 1";
929 }; 919 };
930 const std::string value = '(' + VisitOperand(operation, 0, Type::HalfFloat) + " * vec2(" + 920 const std::string value = '(' + VisitOperand(operation, 0, Type::HalfFloat) + " * vec2(" +