diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-11-21 08:36:44 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-11-21 08:56:00 +0100 |
commit | d92afc74937610dc3a50d7f2659362351a02da14 (patch) | |
tree | 508cd739bfc3864cbd3eea4e15288f09ee826e32 /src/video_core/engines/shader_bytecode.h | |
parent | Merge pull request #1751 from bunnei/color-mask-fix (diff) | |
download | yuzu-d92afc74937610dc3a50d7f2659362351a02da14.tar yuzu-d92afc74937610dc3a50d7f2659362351a02da14.tar.gz yuzu-d92afc74937610dc3a50d7f2659362351a02da14.tar.bz2 yuzu-d92afc74937610dc3a50d7f2659362351a02da14.tar.lz yuzu-d92afc74937610dc3a50d7f2659362351a02da14.tar.xz yuzu-d92afc74937610dc3a50d7f2659362351a02da14.tar.zst yuzu-d92afc74937610dc3a50d7f2659362351a02da14.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/shader_bytecode.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 83a6fd875..5b84bcb24 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -365,6 +365,11 @@ enum class HalfPrecision : u64 { FMZ = 2, }; +enum class R2pMode : u64 { + Pr = 0, + Cc = 1, +}; + enum class IpaInterpMode : u64 { Linear = 0, Perspective = 1, @@ -855,6 +860,12 @@ union Instruction { } hsetp2; union { + BitField<40, 1, R2pMode> mode; + BitField<41, 2, u64> byte; + BitField<20, 7, u64> immediate_mask; + } r2p; + + union { BitField<39, 3, u64> pred39; BitField<42, 1, u64> neg_pred; BitField<43, 1, u64> neg_a; @@ -1381,6 +1392,7 @@ public: PSETP, PSET, CSETP, + R2P_IMM, XMAD_IMM, XMAD_CR, XMAD_RC, @@ -1410,6 +1422,7 @@ public: HalfSetPredicate, PredicateSetPredicate, PredicateSetRegister, + RegisterSetPredicate, Conversion, Xmad, Unknown, @@ -1647,6 +1660,7 @@ private: INST("0101000010001---", Id::PSET, Type::PredicateSetRegister, "PSET"), INST("0101000010010---", Id::PSETP, Type::PredicateSetPredicate, "PSETP"), INST("010100001010----", Id::CSETP, Type::PredicateSetPredicate, "CSETP"), + INST("0011100-11110---", Id::R2P_IMM, Type::RegisterSetPredicate, "R2P_IMM"), INST("0011011-00------", Id::XMAD_IMM, Type::Xmad, "XMAD_IMM"), INST("0100111---------", Id::XMAD_CR, Type::Xmad, "XMAD_CR"), INST("010100010-------", Id::XMAD_RC, Type::Xmad, "XMAD_RC"), |