summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Subv2018-05-19 11:41:14 -0500
committerGravatar Subv2018-05-19 11:41:14 -0500
commita056d5ad8cde507a2723e906ba8b90121639506c (patch)
tree7721b814019c278eeeacfac80580bd09ce898e97
parentMerge pull request #436 from bunnei/multi-core (diff)
downloadyuzu-a056d5ad8cde507a2723e906ba8b90121639506c.tar.gz
yuzu-a056d5ad8cde507a2723e906ba8b90121639506c.tar.xz
yuzu-a056d5ad8cde507a2723e906ba8b90121639506c.zip
ShadersDecompiler: Added decoding for the PSETP instruction.
-rw-r--r--src/video_core/engines/shader_bytecode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index e1ceec268..7eb1bf8d9 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -320,6 +320,7 @@ public:
320 ISETP_C, 320 ISETP_C,
321 ISETP_IMM, 321 ISETP_IMM,
322 ISETP_R, 322 ISETP_R,
323 PSETP,
323 }; 324 };
324 325
325 enum class Type { 326 enum class Type {
@@ -331,6 +332,7 @@ public:
331 FloatSet, 332 FloatSet,
332 FloatSetPredicate, 333 FloatSetPredicate,
333 IntegerSetPredicate, 334 IntegerSetPredicate,
335 PredicateSetPredicate,
334 Conversion, 336 Conversion,
335 Unknown, 337 Unknown,
336 }; 338 };
@@ -477,6 +479,7 @@ private:
477 INST("010010110110----", Id::ISETP_C, Type::IntegerSetPredicate, "ISETP_C"), 479 INST("010010110110----", Id::ISETP_C, Type::IntegerSetPredicate, "ISETP_C"),
478 INST("010110110110----", Id::ISETP_R, Type::IntegerSetPredicate, "ISETP_R"), 480 INST("010110110110----", Id::ISETP_R, Type::IntegerSetPredicate, "ISETP_R"),
479 INST("0011011-0110----", Id::ISETP_IMM, Type::IntegerSetPredicate, "ISETP_IMM"), 481 INST("0011011-0110----", Id::ISETP_IMM, Type::IntegerSetPredicate, "ISETP_IMM"),
482 INST("0101000010010---", Id::PSETP, Type::PredicateSetPredicate, "PSETP"),
480 }; 483 };
481#undef INST 484#undef INST
482 std::stable_sort(table.begin(), table.end(), [](const auto& a, const auto& b) { 485 std::stable_sort(table.begin(), table.end(), [](const auto& a, const auto& b) {