mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-03 01:38:36 +00:00
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:
parent
1285ba4401
commit
c6f0335b62
6 changed files with 240 additions and 121 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue