From 95b6d3f4453fa3fa02fffcb889cb8f5018a24263 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Thu, 6 Jan 2011 01:11:32 +0000 Subject: Kill HAVE_OPENCL. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6756 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp') diff --git a/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp b/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp index 0340952733..cacfcdf47d 100644 --- a/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/OpenCL/OCLTextureDecoder.cpp @@ -86,7 +86,6 @@ cl_mem g_clsrc, g_cldst; // texture buffer memory objects void TexDecoder_OpenCL_Initialize() { -#if defined(HAVE_OPENCL) && HAVE_OPENCL if(!g_Inited) { if(!OpenCL::Initialize()) @@ -240,12 +239,10 @@ void TexDecoder_OpenCL_Initialize() g_Inited = true; } -#endif } void TexDecoder_OpenCL_Shutdown() { -#if defined(HAVE_OPENCL) && HAVE_OPENCL && !defined(DEBUG_OPENCL) if (g_program) clReleaseProgram(g_program); @@ -264,12 +261,10 @@ void TexDecoder_OpenCL_Shutdown() clReleaseMemObject(g_cldst); g_Inited = false; -#endif } PC_TexFormat TexDecoder_Decode_OpenCL(u8 *dst, const u8 *src, int width, int height, int texformat, int tlutaddr, int tlutfmt, bool rgba) { -#if defined(HAVE_OPENCL) && HAVE_OPENCL cl_int err; sDecoderParameter& decoder = rgba ? g_DecodeParametersRGBA[texformat] : g_DecodeParametersNative[texformat]; if(!g_Inited || !decoder.name || !decoder.kernel || decoder.format == PC_TEX_FMT_NONE) @@ -310,7 +305,4 @@ PC_TexFormat TexDecoder_Decode_OpenCL(u8 *dst, const u8 *src, int width, int hei #endif return decoder.format; -#else - return PC_TEX_FMT_NONE; -#endif } -- cgit v1.2.3