summaryrefslogtreecommitdiff
path: root/src/resources/dye/dyepalette.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-25 02:08:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-25 02:08:50 +0300
commit1437254152868e8fa3f11d5b5f08dd3ee5d89ee4 (patch)
tree8cfe61959c3cf6fa1a7c28ed31b2440c6b3b7070 /src/resources/dye/dyepalette.h
parent971159bb7102962299543d323798fbf43185899a (diff)
downloadmanaverse-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.h')
-rw-r--r--src/resources/dye/dyepalette.h42
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: