diff options
| author | bunnei <bunneidev@gmail.com> | 2018-08-30 10:31:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-30 10:31:26 -0400 |
| commit | d6accf96ff08450f17c9ec71425037aa2dbddd7f (patch) | |
| tree | e9110ef0cd78b866ced55aac4aeeefa458c66bc9 /src/video_core/engines/shader_bytecode.h | |
| parent | 5094dfa081c7275e35496374a42996b11f0f6005 (diff) | |
| parent | b1ccd8843467e43838e19c50dcfcbc2ff0b3bc0b (diff) | |
Merge pull request #1200 from bunnei/improve-ipa
gl_shader_decompiler: Improve IPA for Pass mode with Position attribute.
Diffstat (limited to 'src/video_core/engines/shader_bytecode.h')
| -rw-r--r-- | src/video_core/engines/shader_bytecode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 96b745db8..dc98bdc3d 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -242,6 +242,8 @@ enum class TextureType : u64 { TextureCube = 3, }; +enum class IpaMode : u64 { Pass = 0, None = 1, Constant = 2, Sc = 3 }; + union Instruction { Instruction& operator=(const Instruction& instr) { value = instr.value; @@ -325,6 +327,10 @@ union Instruction { } alu; union { + BitField<54, 3, IpaMode> mode; + } ipa; + + union { BitField<48, 1, u64> negate_b; } fmul; |
