mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
add timing of the OpenCL compile functions...they're really slow here, almost 20seconds total...
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4449 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -40,15 +40,18 @@ typedef void *cl_command_queue;
|
||||
typedef void *cl_program;
|
||||
typedef void *cl_kernel;
|
||||
typedef void *cl_mem;
|
||||
typedef void *cl_int;
|
||||
|
||||
#endif
|
||||
|
||||
namespace OpenCL {
|
||||
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||
extern cl_device_id device_id;
|
||||
extern cl_context g_context;
|
||||
extern cl_command_queue g_cmdq;
|
||||
#endif
|
||||
namespace OpenCL
|
||||
{
|
||||
|
||||
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||
extern cl_device_id device_id;
|
||||
extern cl_context g_context;
|
||||
extern cl_command_queue g_cmdq;
|
||||
#endif
|
||||
|
||||
bool Initialize();
|
||||
|
||||
@ -61,9 +64,7 @@ void Destroy();
|
||||
cl_program CompileProgram(const char *Kernel);
|
||||
cl_kernel CompileKernel(cl_program program, const char *Function);
|
||||
|
||||
#if defined(HAVE_OPENCL) && HAVE_OPENCL
|
||||
void HandleCLError(cl_int error, char* str = 0);
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user