From 1437254152868e8fa3f11d5b5f08dd3ee5d89ee4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 May 2017 02:08:50 +0300 Subject: Switch in replaceAOGLColor into using custom despatcher. --- src/resources/dye/dyepalette.h | 42 +++--------------------------------------- 1 file changed, 3 insertions(+), 39 deletions(-) (limited to 'src/resources/dye/dyepalette.h') 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 @@ -132,56 +132,17 @@ class DyePalette final const int bufSize) const restrict2; #endif // SIMD_SUPPORTED - /** - * 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: -- cgit v1.2.3-70-g09d2