summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-13 02:00:37 +0200
committerbunnei <bunneidev@gmail.com>2018-07-13 02:00:37 +0200
commit4757ffdccea17b2907b254f1af1a99e145e38bd6 (patch)
tree3cbdb9a850506091a4df0717c547ea70689cc7fb /src/video_core/engines
parentMerge pull request #652 from Subv/fadd32i (diff)
downloadyuzu-4757ffdccea17b2907b254f1af1a99e145e38bd6.tar
yuzu-4757ffdccea17b2907b254f1af1a99e145e38bd6.tar.gz
yuzu-4757ffdccea17b2907b254f1af1a99e145e38bd6.tar.bz2
yuzu-4757ffdccea17b2907b254f1af1a99e145e38bd6.tar.lz
yuzu-4757ffdccea17b2907b254f1af1a99e145e38bd6.tar.xz
yuzu-4757ffdccea17b2907b254f1af1a99e145e38bd6.tar.zst
yuzu-4757ffdccea17b2907b254f1af1a99e145e38bd6.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index ab978c2e2..2ec1de285 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -201,6 +201,11 @@ enum class IMinMaxExchange : u64 {
XHi = 3,
};
+enum class FlowCondition : u64 {
+ Always = 0xF,
+ Fcsm_Tr = 0x1C, // TODO(bunnei): What is this used for?
+};
+
union Instruction {
Instruction& operator=(const Instruction& instr) {
value = instr.value;
@@ -316,6 +321,10 @@ union Instruction {
} bfe;
union {
+ BitField<0, 5, FlowCondition> cond;
+ } flow;
+
+ union {
BitField<48, 1, u64> negate_b;
BitField<49, 1, u64> negate_c;
} ffma;