diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-25 02:08:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-25 02:08:50 +0300 |
commit | 1437254152868e8fa3f11d5b5f08dd3ee5d89ee4 (patch) | |
tree | 8cfe61959c3cf6fa1a7c28ed31b2440c6b3b7070 /src/resources/dye/dyepalette.cpp | |
parent | 971159bb7102962299543d323798fbf43185899a (diff) | |
download | manaverse-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.tar.gz manaverse-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.tar.bz2 manaverse-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.tar.xz manaverse-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.zip |
Switch in replaceAOGLColor into using custom despatcher.
Diffstat (limited to 'src/resources/dye/dyepalette.cpp')
-rw-r--r-- | src/resources/dye/dyepalette.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/resources/dye/dyepalette.cpp b/src/resources/dye/dyepalette.cpp index bf12b7047..b8346058f 100644 --- a/src/resources/dye/dyepalette.cpp +++ b/src/resources/dye/dyepalette.cpp @@ -53,6 +53,9 @@ DyeFunctionPtr DyePalette::funcReplaceSOGLColorAvx2 = nullptr; DyeFunctionPtr DyePalette::funcReplaceAColor = nullptr; DyeFunctionPtr DyePalette::funcReplaceAColorSse2 = nullptr; DyeFunctionPtr DyePalette::funcReplaceAColorAvx2 = nullptr; +DyeFunctionPtr DyePalette::funcReplaceAOGLColor = nullptr; +DyeFunctionPtr DyePalette::funcReplaceAOGLColorSse2 = nullptr; +DyeFunctionPtr DyePalette::funcReplaceAOGLColorAvx2 = nullptr; DyePalette::DyePalette(const std::string &restrict description, const uint8_t blockSize) : @@ -254,6 +257,9 @@ void DyePalette::initFunctions() funcReplaceAColor = &DyePalette::replaceAColorAvx2; funcReplaceAColorAvx2 = &DyePalette::replaceAColorAvx2; funcReplaceAColorSse2 = &DyePalette::replaceAColorSse2; + funcReplaceAOGLColor = &DyePalette::replaceAOGLColorAvx2; + funcReplaceAOGLColorAvx2 = &DyePalette::replaceAOGLColorAvx2; + funcReplaceAOGLColorSse2 = &DyePalette::replaceAOGLColorSse2; } else if (flags & Cpu::FEATURE_SSE2) { @@ -266,6 +272,9 @@ void DyePalette::initFunctions() funcReplaceAColor = &DyePalette::replaceAColorSse2; funcReplaceAColorAvx2 = &DyePalette::replaceAColorSse2; funcReplaceAColorSse2 = &DyePalette::replaceAColorSse2; + funcReplaceAOGLColor = &DyePalette::replaceAOGLColorSse2; + funcReplaceAOGLColorAvx2 = &DyePalette::replaceAOGLColorSse2; + funcReplaceAOGLColorSse2 = &DyePalette::replaceAOGLColorSse2; } else #endif // SIMD_SUPPORTED @@ -279,5 +288,8 @@ void DyePalette::initFunctions() funcReplaceAColor = &DyePalette::replaceAColorDefault; funcReplaceAColorAvx2 = &DyePalette::replaceAColorDefault; funcReplaceAColorSse2 = &DyePalette::replaceAColorDefault; + funcReplaceAOGLColor = &DyePalette::replaceAOGLColorDefault; + funcReplaceAOGLColorAvx2 = &DyePalette::replaceAOGLColorDefault; + funcReplaceAOGLColorSse2 = &DyePalette::replaceAOGLColorDefault; } } |