mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
opencl: Use the Unix call helpers.
This commit is contained in:
parent
7f808e564d
commit
3b50ca0ff8
|
@ -33,8 +33,6 @@
|
||||||
|
|
||||||
BOOL extension_is_supported( const char *name, size_t len ) DECLSPEC_HIDDEN;
|
BOOL extension_is_supported( const char *name, size_t len ) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
extern unixlib_handle_t opencl_handle DECLSPEC_HIDDEN;
|
#define OPENCL_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
|
||||||
|
|
||||||
#define OPENCL_CALL( func, params ) __wine_unix_call( opencl_handle, unix_ ## func, params )
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(opencl);
|
WINE_DEFAULT_DEBUG_CHANNEL(opencl);
|
||||||
|
|
||||||
unixlib_handle_t opencl_handle = 0;
|
|
||||||
|
|
||||||
static cl_int filter_extensions( const char *unix_exts, SIZE_T size, char *win_exts, size_t *ret_size )
|
static cl_int filter_extensions( const char *unix_exts, SIZE_T size, char *win_exts, size_t *ret_size )
|
||||||
{
|
{
|
||||||
char *p = win_exts;
|
char *p = win_exts;
|
||||||
|
@ -284,8 +282,7 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
|
||||||
if (reason == DLL_PROCESS_ATTACH)
|
if (reason == DLL_PROCESS_ATTACH)
|
||||||
{
|
{
|
||||||
DisableThreadLibraryCalls( instance );
|
DisableThreadLibraryCalls( instance );
|
||||||
return !NtQueryVirtualMemory( GetCurrentProcess(), instance, MemoryWineUnixFuncs,
|
return !__wine_init_unix_call();
|
||||||
&opencl_handle, sizeof(opencl_handle), NULL );
|
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue