From ab7f52b279076de459268c61641305544df3637f Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Mon, 24 Dec 2018 03:10:13 -0300 Subject: glsl_decompiler: Fixup permissive member function declarations --- src/video_core/shader/glsl_decompiler.cpp | 266 +++++++++++++++--------------- 1 file changed, 133 insertions(+), 133 deletions(-) diff --git a/src/video_core/shader/glsl_decompiler.cpp b/src/video_core/shader/glsl_decompiler.cpp index 9b443e61a..2ee8cefab 100644 --- a/src/video_core/shader/glsl_decompiler.cpp +++ b/src/video_core/shader/glsl_decompiler.cpp @@ -1295,139 +1295,139 @@ private: } static constexpr OperationDecompilersArray operation_decompilers = { - &Assign, - &AssignComposite, - - &Composite, - &Select, - - &Add, - &Mul, - &Div, - &Fma, - &Negate, - &Absolute, - &FClamp, - &Min, - &Max, - &FCos, - &FSin, - &FExp2, - &FLog2, - &FInverseSqrt, - &FSqrt, - &FRoundEven, - &FFloor, - &FCeil, - &FTrunc, - &FCastInteger, - &FCastInteger, - - &Add, - &Mul, - &Div, - &Negate, - &Absolute, - &Min, - &Max, - - &ICastFloat, - &ICastUnsigned, - &LogicalShiftLeft, - &ILogicalShiftRight, - &IArithmeticShiftRight, - &BitwiseAnd, - &BitwiseOr, - &BitwiseXor, - &BitwiseNot, - &BitfieldInsert, - &BitCount, - - &Add, - &Mul, - &Div, - &Min, - &Max, - &UCastFloat, - &UCastSigned, - &LogicalShiftLeft, - &UShiftRight, - &UShiftRight, - &BitwiseAnd, - &BitwiseOr, - &BitwiseXor, - &BitwiseNot, - &BitfieldInsert, - &BitCount, - - &Add, - &Mul, - &Fma, - &Absolute, - &HNegate, - &HMergeF32, - &HMergeH0, - &HMergeH1, - - &LogicalAssign, - &LogicalAnd, - &LogicalOr, - &LogicalXor, - &LogicalNegate, - &LogicalPick2, - &LogicalAll2, - &LogicalAny2, - - &LogicalLessThan, - &LogicalEqual, - &LogicalLessEqual, - &LogicalGreaterThan, - &LogicalNotEqual, - &LogicalGreaterEqual, - &LogicalFIsNan, - - &LogicalLessThan, - &LogicalEqual, - &LogicalLessEqual, - &LogicalGreaterThan, - &LogicalNotEqual, - &LogicalGreaterEqual, - - &LogicalLessThan, - &LogicalEqual, - &LogicalLessEqual, - &LogicalGreaterThan, - &LogicalNotEqual, - &LogicalGreaterEqual, - - &Logical2HLessThan, - &Logical2HEqual, - &Logical2HLessEqual, - &Logical2HGreaterThan, - &Logical2HNotEqual, - &Logical2HGreaterEqual, - - &F4Texture, - &F4TextureLod, - &F4TextureGather, - &F4TextureQueryDimensions, - &F4TextureQueryLod, - &F4TexelFetch, - - &Ipa, - - &Bra, - &PushFlowStack, // Ssy - &PushFlowStack, // Brk - &PopFlowStack, // Sync - &PopFlowStack, // Brk - &Exit, - &Kil, - - &EmitVertex, - &EndPrimitive, - - &YNegate, + &GLSLDecompiler::Assign, + &GLSLDecompiler::AssignComposite, + + &GLSLDecompiler::Composite, + &GLSLDecompiler::Select, + + &GLSLDecompiler::Add, + &GLSLDecompiler::Mul, + &GLSLDecompiler::Div, + &GLSLDecompiler::Fma, + &GLSLDecompiler::Negate, + &GLSLDecompiler::Absolute, + &GLSLDecompiler::FClamp, + &GLSLDecompiler::Min, + &GLSLDecompiler::Max, + &GLSLDecompiler::FCos, + &GLSLDecompiler::FSin, + &GLSLDecompiler::FExp2, + &GLSLDecompiler::FLog2, + &GLSLDecompiler::FInverseSqrt, + &GLSLDecompiler::FSqrt, + &GLSLDecompiler::FRoundEven, + &GLSLDecompiler::FFloor, + &GLSLDecompiler::FCeil, + &GLSLDecompiler::FTrunc, + &GLSLDecompiler::FCastInteger, + &GLSLDecompiler::FCastInteger, + + &GLSLDecompiler::Add, + &GLSLDecompiler::Mul, + &GLSLDecompiler::Div, + &GLSLDecompiler::Negate, + &GLSLDecompiler::Absolute, + &GLSLDecompiler::Min, + &GLSLDecompiler::Max, + + &GLSLDecompiler::ICastFloat, + &GLSLDecompiler::ICastUnsigned, + &GLSLDecompiler::LogicalShiftLeft, + &GLSLDecompiler::ILogicalShiftRight, + &GLSLDecompiler::IArithmeticShiftRight, + &GLSLDecompiler::BitwiseAnd, + &GLSLDecompiler::BitwiseOr, + &GLSLDecompiler::BitwiseXor, + &GLSLDecompiler::BitwiseNot, + &GLSLDecompiler::BitfieldInsert, + &GLSLDecompiler::BitCount, + + &GLSLDecompiler::Add, + &GLSLDecompiler::Mul, + &GLSLDecompiler::Div, + &GLSLDecompiler::Min, + &GLSLDecompiler::Max, + &GLSLDecompiler::UCastFloat, + &GLSLDecompiler::UCastSigned, + &GLSLDecompiler::LogicalShiftLeft, + &GLSLDecompiler::UShiftRight, + &GLSLDecompiler::UShiftRight, + &GLSLDecompiler::BitwiseAnd, + &GLSLDecompiler::BitwiseOr, + &GLSLDecompiler::BitwiseXor, + &GLSLDecompiler::BitwiseNot, + &GLSLDecompiler::BitfieldInsert, + &GLSLDecompiler::BitCount, + + &GLSLDecompiler::Add, + &GLSLDecompiler::Mul, + &GLSLDecompiler::Fma, + &GLSLDecompiler::Absolute, + &GLSLDecompiler::HNegate, + &GLSLDecompiler::HMergeF32, + &GLSLDecompiler::HMergeH0, + &GLSLDecompiler::HMergeH1, + + &GLSLDecompiler::LogicalAssign, + &GLSLDecompiler::LogicalAnd, + &GLSLDecompiler::LogicalOr, + &GLSLDecompiler::LogicalXor, + &GLSLDecompiler::LogicalNegate, + &GLSLDecompiler::LogicalPick2, + &GLSLDecompiler::LogicalAll2, + &GLSLDecompiler::LogicalAny2, + + &GLSLDecompiler::LogicalLessThan, + &GLSLDecompiler::LogicalEqual, + &GLSLDecompiler::LogicalLessEqual, + &GLSLDecompiler::LogicalGreaterThan, + &GLSLDecompiler::LogicalNotEqual, + &GLSLDecompiler::LogicalGreaterEqual, + &GLSLDecompiler::LogicalFIsNan, + + &GLSLDecompiler::LogicalLessThan, + &GLSLDecompiler::LogicalEqual, + &GLSLDecompiler::LogicalLessEqual, + &GLSLDecompiler::LogicalGreaterThan, + &GLSLDecompiler::LogicalNotEqual, + &GLSLDecompiler::LogicalGreaterEqual, + + &GLSLDecompiler::LogicalLessThan, + &GLSLDecompiler::LogicalEqual, + &GLSLDecompiler::LogicalLessEqual, + &GLSLDecompiler::LogicalGreaterThan, + &GLSLDecompiler::LogicalNotEqual, + &GLSLDecompiler::LogicalGreaterEqual, + + &GLSLDecompiler::Logical2HLessThan, + &GLSLDecompiler::Logical2HEqual, + &GLSLDecompiler::Logical2HLessEqual, + &GLSLDecompiler::Logical2HGreaterThan, + &GLSLDecompiler::Logical2HNotEqual, + &GLSLDecompiler::Logical2HGreaterEqual, + + &GLSLDecompiler::F4Texture, + &GLSLDecompiler::F4TextureLod, + &GLSLDecompiler::F4TextureGather, + &GLSLDecompiler::F4TextureQueryDimensions, + &GLSLDecompiler::F4TextureQueryLod, + &GLSLDecompiler::F4TexelFetch, + + &GLSLDecompiler::Ipa, + + &GLSLDecompiler::Bra, + &GLSLDecompiler::PushFlowStack, // Ssy + &GLSLDecompiler::PushFlowStack, // Brk + &GLSLDecompiler::PopFlowStack, // Sync + &GLSLDecompiler::PopFlowStack, // Brk + &GLSLDecompiler::Exit, + &GLSLDecompiler::Kil, + + &GLSLDecompiler::EmitVertex, + &GLSLDecompiler::EndPrimitive, + + &GLSLDecompiler::YNegate, }; std::string GetRegister(u32 index) const { -- cgit v1.2.3