summaryrefslogtreecommitdiff
path: root/src/resources/dye/dyepalette.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-25 00:55:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-25 00:55:33 +0300
commit69aaf75b49cdf385b03469b82dd05480abf6e8b5 (patch)
treeb2a14ea29c6bdd5b06f4812a378bd1f5325f206d /src/resources/dye/dyepalette.h
parent3480f3ad939e2ae5d0191ed739a57e834658c32e (diff)
downloadplus-69aaf75b49cdf385b03469b82dd05480abf6e8b5.tar.gz
plus-69aaf75b49cdf385b03469b82dd05480abf6e8b5.tar.bz2
plus-69aaf75b49cdf385b03469b82dd05480abf6e8b5.tar.xz
plus-69aaf75b49cdf385b03469b82dd05480abf6e8b5.zip
Switch in replaceSOGLColor into using custom despatcher.
Diffstat (limited to 'src/resources/dye/dyepalette.h')
-rw-r--r--src/resources/dye/dyepalette.h43
1 files changed, 3 insertions, 40 deletions
diff --git a/src/resources/dye/dyepalette.h b/src/resources/dye/dyepalette.h
index da165305e..4129928fa 100644
--- a/src/resources/dye/dyepalette.h
+++ b/src/resources/dye/dyepalette.h
@@ -155,53 +155,13 @@ class DyePalette final
/**
* replace colors for OpenGL for S dye.
*/
- void replaceSOGLColor(uint32_t *restrict pixels,
- const int bufSize) const restrict2;
-
- /**
- * replace colors for OpenGL for S dye.
- */
void replaceSOGLColorDefault(uint32_t *restrict pixels,
const int bufSize) const restrict2;
-
- /**
- * replace colors for OpenGL for S dye.
- */
- FUNCTION_SIMD_DEFAULT
- void replaceSOGLColorSimd(uint32_t *restrict pixels,
- const int bufSize) const restrict2;
-
- /**
- * replace colors for OpenGL for S dye.
- */
- FUNCTION_SIMD_DEFAULT
- void replaceSOGLColorSse2(uint32_t *restrict pixels,
- const int bufSize) const restrict2;
-
- /**
- * replace colors for OpenGL for S dye.
- */
- FUNCTION_SIMD_DEFAULT
- void replaceSOGLColorAvx2(uint32_t *restrict pixels,
- const int bufSize) const restrict2;
-
#ifdef SIMD_SUPPORTED
/**
* replace colors for OpenGL for S dye.
*/
__attribute__ ((target ("sse2")))
- void replaceSOGLColorSimd(uint32_t *restrict pixels,
- const int bufSize) const restrict2;
- /**
- * replace colors for OpenGL for S dye.
- */
- __attribute__ ((target ("avx2")))
- void replaceSOGLColorSimd(uint32_t *restrict pixels,
- const int bufSize) const restrict2;
- /**
- * replace colors for OpenGL for S dye.
- */
- __attribute__ ((target ("sse2")))
void replaceSOGLColorSse2(uint32_t *restrict pixels,
const int bufSize) const restrict2;
/**
@@ -285,6 +245,9 @@ class DyePalette final
static DyeFunctionPtr funcReplaceSColor;
static DyeFunctionPtr funcReplaceSColorSse2;
static DyeFunctionPtr funcReplaceSColorAvx2;
+ static DyeFunctionPtr funcReplaceSOGLColor;
+ static DyeFunctionPtr funcReplaceSOGLColorSse2;
+ static DyeFunctionPtr funcReplaceSOGLColorAvx2;
#ifndef UNITTESTS
private: