mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 05:47:56 -05:00
Merge pull request #1200 from bunnei/improve-ipa
gl_shader_decompiler: Improve IPA for Pass mode with Position attribute.
This commit is contained in:
@ -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;
|
||||
@ -324,6 +326,10 @@ union Instruction {
|
||||
}
|
||||
} alu;
|
||||
|
||||
union {
|
||||
BitField<54, 3, IpaMode> mode;
|
||||
} ipa;
|
||||
|
||||
union {
|
||||
BitField<48, 1, u64> negate_b;
|
||||
} fmul;
|
||||
|
Reference in New Issue
Block a user