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.h | |
parent | 971159bb7102962299543d323798fbf43185899a (diff) | |
download | plus-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.tar.gz plus-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.tar.bz2 plus-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.tar.xz plus-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.zip |
Switch in replaceAOGLColor into using custom despatcher.
Diffstat (limited to 'src/resources/dye/dyepalette.h')
-rw-r--r-- | src/resources/dye/dyepalette.h | 42 |
1 files changed, 3 insertions, 39 deletions
diff --git a/src/resources/dye/dyepalette.h b/src/resources/dye/dyepalette.h index 1ac15c9a0..06473ec69 100644 --- a/src/resources/dye/dyepalette.h +++ b/src/resources/dye/dyepalette.h @@ -135,53 +135,14 @@ class DyePalette final /** * replace colors for OpenGL for A dye. */ - void replaceAOGLColor(uint32_t *restrict pixels, - const int bufSize) const restrict2; - - /** - * replace colors for OpenGL for A dye. - */ void replaceAOGLColorDefault(uint32_t *restrict pixels, const int bufSize) const restrict2; - /** - * replace colors for OpenGL for A dye. - */ - FUNCTION_SIMD_DEFAULT - void replaceAOGLColorSimd(uint32_t *restrict pixels, - const int bufSize) const restrict2; - - /** - * replace colors for OpenGL for A dye. - */ - FUNCTION_SIMD_DEFAULT - void replaceAOGLColorSse2(uint32_t *restrict pixels, - const int bufSize) const restrict2; - - /** - * replace colors for OpenGL for A dye. - */ - FUNCTION_SIMD_DEFAULT - void replaceAOGLColorAvx2(uint32_t *restrict pixels, - const int bufSize) const restrict2; - #ifdef SIMD_SUPPORTED /** * replace colors for OpenGL for A dye. */ __attribute__ ((target ("sse2"))) - void replaceAOGLColorSimd(uint32_t *restrict pixels, - const int bufSize) const restrict2; - /** - * replace colors for OpenGL for A dye. - */ - __attribute__ ((target ("avx2"))) - void replaceAOGLColorSimd(uint32_t *restrict pixels, - const int bufSize) const restrict2; - /** - * replace colors for OpenGL for A dye. - */ - __attribute__ ((target ("sse2"))) void replaceAOGLColorSse2(uint32_t *restrict pixels, const int bufSize) const restrict2; /** @@ -211,6 +172,9 @@ class DyePalette final static DyeFunctionPtr funcReplaceAColor; static DyeFunctionPtr funcReplaceAColorSse2; static DyeFunctionPtr funcReplaceAColorAvx2; + static DyeFunctionPtr funcReplaceAOGLColor; + static DyeFunctionPtr funcReplaceAOGLColorSse2; + static DyeFunctionPtr funcReplaceAOGLColorAvx2; #ifndef UNITTESTS private: |