OpenCL: More work on centralization (need SCons reflection)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4351 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-09-30 21:01:34 +00:00
parent 1285ba4401
commit c6f0335b62
6 changed files with 240 additions and 121 deletions

View file

@ -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)