diff options
| author | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-09-30 21:01:34 +0000 |
|---|---|---|
| committer | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-09-30 21:01:34 +0000 |
| commit | c6f0335b624f80ce5fbf2444de494a079e058c48 (patch) | |
| tree | 3d2ed6a6f01c2b2fbdadfb05dbd94cd03554112e /Source/Core/VideoCommon/Src/OpcodeDecoding.cpp | |
| parent | 1285ba4401766fa97c34e8326baf9260a105134e (diff) | |
OpenCL: More work on centralization (need SCons reflection)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4351 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/OpcodeDecoding.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp b/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp index bacaaa2322..f5d0b41211 100644 --- a/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp @@ -41,6 +41,8 @@ #include "Fifo.h" #include "DataReader.h" +#include "OpenCL.h" + u8* g_pVideoData = 0; extern u8* FAKE_GetFifoStartPtr(); @@ -377,11 +379,18 @@ static void DecodeSemiNop() void OpcodeDecoder_Init() { g_pVideoData = FAKE_GetFifoStartPtr(); + +#if defined(HAVE_OPENCL) && HAVE_OPENCL + OpenCL::Initialize(); +#endif } void OpcodeDecoder_Shutdown() { +#if defined(HAVE_OPENCL) && HAVE_OPENCL + OpenCL::Destroy(); +#endif } void OpcodeDecoder_Run(bool skipped_frame) |
