summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-08-18 14:51:34 +0200
committerGitHub <noreply@github.com>2019-08-18 14:51:34 +0200
commitca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b (patch)
treead2dd05158c5df167e27a1ca1704142f62ddcf9a /src/video_core/engines
parentMerge pull request #2768 from ReinUsesLisp/hsetp2-fix (diff)
parentshader_ir: Implement NOP (diff)
downloadyuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar
yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar.gz
yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar.bz2
yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar.lz
yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar.xz
yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar.zst
yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 8520a0143..083ee3304 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -560,6 +560,11 @@ union Instruction {
BitField<48, 16, u64> opcode;
union {
+ BitField<8, 5, ConditionCode> cc;
+ BitField<13, 1, u64> trigger;
+ } nop;
+
+ union {
BitField<8, 8, Register> gpr;
BitField<20, 24, s64> offset;
} gmem;
@@ -1516,6 +1521,7 @@ public:
TMML, // Texture Mip Map Level
SUST, // Surface Store
EXIT,
+ NOP,
IPA,
OUT_R, // Emit vertex/primitive
ISBERD,
@@ -1795,6 +1801,7 @@ private:
INST("110111110110----", Id::TMML_B, Type::Texture, "TMML_B"),
INST("1101111101011---", Id::TMML, Type::Texture, "TMML"),
INST("11101011001-----", Id::SUST, Type::Image, "SUST"),
+ INST("0101000010110---", Id::NOP, Type::Trivial, "NOP"),
INST("11100000--------", Id::IPA, Type::Trivial, "IPA"),
INST("1111101111100---", Id::OUT_R, Type::Trivial, "OUT_R"),
INST("1110111111010---", Id::ISBERD, Type::Trivial, "ISBERD"),