summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorLaku <Lakumakkara@users.noreply.github.com>2018-08-31 03:32:58 +0200
committerbunnei <bunneidev@gmail.com>2018-08-31 03:32:58 +0200
commit915ab81ec203d40e6f67d3cfa6e2e26599bec570 (patch)
tree1e74c1c52f86e89c3ddc9e166034f5b96b194760 /src/video_core/engines
parentMerge pull request #1200 from bunnei/improve-ipa (diff)
downloadyuzu-915ab81ec203d40e6f67d3cfa6e2e26599bec570.tar
yuzu-915ab81ec203d40e6f67d3cfa6e2e26599bec570.tar.gz
yuzu-915ab81ec203d40e6f67d3cfa6e2e26599bec570.tar.bz2
yuzu-915ab81ec203d40e6f67d3cfa6e2e26599bec570.tar.lz
yuzu-915ab81ec203d40e6f67d3cfa6e2e26599bec570.tar.xz
yuzu-915ab81ec203d40e6f67d3cfa6e2e26599bec570.tar.zst
yuzu-915ab81ec203d40e6f67d3cfa6e2e26599bec570.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index dc98bdc3d..65e0c469f 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -345,6 +345,10 @@ union Instruction {
} alu_integer;
union {
+ BitField<40, 1, u64> invert;
+ } popc;
+
+ union {
BitField<39, 3, u64> pred;
BitField<42, 1, u64> neg_pred;
} sel;
@@ -671,6 +675,9 @@ public:
ISCADD_C, // Scale and Add
ISCADD_R,
ISCADD_IMM,
+ POPC_C,
+ POPC_R,
+ POPC_IMM,
SEL_C,
SEL_R,
SEL_IMM,
@@ -892,6 +899,9 @@ private:
INST("0100110000011---", Id::ISCADD_C, Type::ArithmeticInteger, "ISCADD_C"),
INST("0101110000011---", Id::ISCADD_R, Type::ArithmeticInteger, "ISCADD_R"),
INST("0011100-00011---", Id::ISCADD_IMM, Type::ArithmeticInteger, "ISCADD_IMM"),
+ INST("0100110000001---", Id::POPC_C, Type::ArithmeticInteger, "POPC_C"),
+ INST("0101110000001---", Id::POPC_R, Type::ArithmeticInteger, "POPC_R"),
+ INST("0011100-00001---", Id::POPC_IMM, Type::ArithmeticInteger, "POPC_IMM"),
INST("0100110010100---", Id::SEL_C, Type::ArithmeticInteger, "SEL_C"),
INST("0101110010100---", Id::SEL_R, Type::ArithmeticInteger, "SEL_R"),
INST("0011100-10100---", Id::SEL_IMM, Type::ArithmeticInteger, "SEL_IMM"),