From 540f59ef07f4d7a652d8e7eb5400f09b5b3377fa Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Wed, 14 Oct 2009 22:28:23 +0000 Subject: OpenCL: More formats (thanks, orphis) RGBA8, RGB565, RGB5A3. Optimized the buffer creation. There is a visible performance boost. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4422 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/OpcodeDecoding.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/Core/VideoCommon/Src/OpcodeDecoding.cpp') diff --git a/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp b/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp index 3e04c71266..8985814309 100644 --- a/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp @@ -43,6 +43,9 @@ #include "DataReader.h" #include "OpenCL.h" +#if defined(HAVE_OPENCL) && HAVE_OPENCL +#include "OpenCL/OCLTextureDecoder.h" +#endif u8* g_pVideoData = 0; @@ -383,6 +386,7 @@ void OpcodeDecoder_Init() #if defined(HAVE_OPENCL) && HAVE_OPENCL OpenCL::Initialize(); + TexDecoder_OpenCL_Initialize(); #endif } @@ -391,6 +395,7 @@ void OpcodeDecoder_Shutdown() { #if defined(HAVE_OPENCL) && HAVE_OPENCL OpenCL::Destroy(); + TexDecoder_OpenCL_Shutdown(); #endif } -- cgit v1.2.3