summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/OpcodeDecoding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/Src/OpcodeDecoding.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/OpcodeDecoding.cpp9
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)