summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/shader_bytecode.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-02 16:44:43 +0200
committerGitHub <noreply@github.com>2018-09-02 16:44:43 +0200
commit177c45e97d26d42b0e63e18163fcfc00b5b8a1ab (patch)
tree30c43b271255d7d1d3877d036d04c2f5781dc4af /src/video_core/engines/shader_bytecode.h
parentMerge pull request #1216 from ogniK5377/ffma-assert (diff)
parentAdded better asserts to IPA, Renamed IPA modes to match mesa (diff)
downloadyuzu-177c45e97d26d42b0e63e18163fcfc00b5b8a1ab.tar
yuzu-177c45e97d26d42b0e63e18163fcfc00b5b8a1ab.tar.gz
yuzu-177c45e97d26d42b0e63e18163fcfc00b5b8a1ab.tar.bz2
yuzu-177c45e97d26d42b0e63e18163fcfc00b5b8a1ab.tar.lz
yuzu-177c45e97d26d42b0e63e18163fcfc00b5b8a1ab.tar.xz
yuzu-177c45e97d26d42b0e63e18163fcfc00b5b8a1ab.tar.zst
yuzu-177c45e97d26d42b0e63e18163fcfc00b5b8a1ab.zip
Diffstat (limited to 'src/video_core/engines/shader_bytecode.h')
-rw-r--r--src/video_core/engines/shader_bytecode.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 663c1d4af..9d604afd5 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -243,7 +243,8 @@ enum class TextureType : u64 {
TextureCube = 3,
};
-enum class IpaMode : u64 { Pass = 0, None = 1, Constant = 2, Sc = 3 };
+enum class IpaInterpMode : u64 { Linear = 0, Perspective = 1, Flat = 2, Sc = 3 };
+enum class IpaSampleMode : u64 { Default = 0, Centroid = 1, Offset = 2 };
union Instruction {
Instruction& operator=(const Instruction& instr) {
@@ -328,7 +329,9 @@ union Instruction {
} alu;
union {
- BitField<54, 3, IpaMode> mode;
+ BitField<51, 1, u64> saturate;
+ BitField<52, 2, IpaSampleMode> sample_mode;
+ BitField<54, 2, IpaInterpMode> interp_mode;
} ipa;
union {