From c6f0335b624f80ce5fbf2444de494a079e058c48 Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Wed, 30 Sep 2009 21:01:34 +0000 Subject: OpenCL: More work on centralization (need SCons reflection) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4351 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/OpcodeDecoding.cpp | 9 +++++++++ 1 file changed, 9 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 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) -- cgit v1.2.3