From b1ccd8843467e43838e19c50dcfcbc2ff0b3bc0b Mon Sep 17 00:00:00 2001 From: bunnei Date: Wed, 29 Aug 2018 00:37:29 -0400 Subject: gl_shader_decompiler: Improve IPA for Pass mode with Position attribute. --- src/video_core/engines/shader_bytecode.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/video_core/engines') diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 625ecdfcd..38ad1ae23 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -230,6 +230,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; @@ -312,6 +314,10 @@ union Instruction { } } alu; + union { + BitField<54, 3, IpaMode> mode; + } ipa; + union { BitField<48, 1, u64> negate_b; } fmul; -- cgit v1.2.3