diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2016-10-13 12:55:57 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2016-10-18 09:01:14 +0000 |
commit | 4eea4af8924e3b1bb00c22cf1f9d21fc4dec6e83 (patch) | |
tree | 73e6e3919eea8bedc18ba51f9141ae68d71f7708 /include/opencl/openclwrapper.hxx | |
parent | 9a3b752756204307a0439c4e3534c094c6ee979d (diff) |
tdf#103204 opencl: initialize command queue on demand
Change-Id: Ie3da1d6ec91e951b1ffc15abf376c7af57789e47
Reviewed-on: https://gerrit.libreoffice.org/29802
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/opencl/openclwrapper.hxx')
-rw-r--r-- | include/opencl/openclwrapper.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/opencl/openclwrapper.hxx b/include/opencl/openclwrapper.hxx index dae119292c25..233412fdb4eb 100644 --- a/include/opencl/openclwrapper.hxx +++ b/include/opencl/openclwrapper.hxx @@ -42,6 +42,7 @@ struct OPENCL_DLLPUBLIC GPUEnv cl_context mpContext; cl_device_id mpDevID; cl_command_queue mpCmdQueue[OPENCL_CMDQUEUE_SIZE]; + bool mbCommandQueueInitialized; cl_program mpArryPrograms[MAX_CLFILE_NUM]; //one program object maps one kernel source file int mnIsUserCreated; // 1: created , 0:no create and needed to create by opencl wrapper int mnCmdQueuePos; |