rsx/fp: Explicitly insert global functions.

- Functions such as pack/unpack ops must exist before the shared gather functions are declared
This commit is contained in:
kd-11 2017-12-02 15:13:13 +03:00
parent bfb3144f34
commit cdd4fd9867
8 changed files with 25 additions and 8 deletions

View file

@ -444,15 +444,17 @@ std::string FragmentProgramDecompiler::BuildCode()
std::stringstream OS;
insertHeader(OS);
OS << std::endl;
OS << "\n";
insertConstants(OS);
OS << std::endl;
OS << "\n";
insertIntputs(OS);
OS << std::endl;
OS << "\n";
insertOutputs(OS);
OS << std::endl;
OS << "\n";
//Insert global function definitions
insertGlobalFunctions(OS);
//TODO: Better organization for this
std::string float2 = getFloatTypeName(2);
std::string float4 = getFloatTypeName(4);