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

@ -192,10 +192,13 @@ namespace
}
}
void GLFragmentDecompilerThread::insertMainStart(std::stringstream & OS)
void GLFragmentDecompilerThread::insertGlobalFunctions(std::stringstream &OS)
{
glsl::insert_glsl_legacy_function(OS, glsl::glsl_fragment_program);
}
void GLFragmentDecompilerThread::insertMainStart(std::stringstream & OS)
{
//TODO: Generate input mask during parse stage to avoid this
for (const ParamType& PT : m_parr.params[PF_PARAM_IN])
{