diff options
| author | Sonicadvance1 <sonicadvance1@gmail.com> | 2009-09-30 00:28:27 +0000 |
|---|---|---|
| committer | Sonicadvance1 <sonicadvance1@gmail.com> | 2009-09-30 00:28:27 +0000 |
| commit | fb258e3ca5930d66b4c0dbb796731b9080cb9282 (patch) | |
| tree | 59e5c42fcb0900f52c179f87f67973897905a1e4 /Source/Core/VideoCommon/Src/TextureDecoder.cpp | |
| parent | 076e7273763b262994ef899433ba29efadfa02de (diff) | |
Base of OpenCL code
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4346 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureDecoder.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/TextureDecoder.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp index 35907e0ca2..eebb4c9f8d 100644 --- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp @@ -16,12 +16,15 @@ // http://code.google.com/p/dolphin-emu/ #include <cmath> - #include "Common.h" //#include "VideoCommon.h" // to get debug logs #include "CPUDetect.h" #include "TextureDecoder.h" +#ifdef OPENCL +#include "OpenCL/TextureDecoder.h" +#endif + #include "LookUpTables.h" bool TexFmt_Overlay_Enable=false; @@ -578,7 +581,11 @@ void TexDecoder_SetTexFmtOverlayOptions(bool enable, bool center) PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, int texformat, int tlutaddr, int tlutfmt) { + #ifdef OPENCL + PC_TexFormat retval = TexDecoder_Decode_OpenCL(dst, src, width, height, texformat, tlutaddr, tlutfmt); + #else PC_TexFormat retval = TexDecoder_Decode_real(dst,src,width,height,texformat,tlutaddr,tlutfmt); + #endif if ((!TexFmt_Overlay_Enable)|| (retval == PC_TEX_FMT_NONE)) return retval; |
