aboutsummaryrefslogtreecommitdiff
path: root/src/core/dsp/worker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/dsp/worker.cpp')
-rw-r--r--src/core/dsp/worker.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/dsp/worker.cpp b/src/core/dsp/worker.cpp
index ace3eec..2d2ab5d 100644
--- a/src/core/dsp/worker.cpp
+++ b/src/core/dsp/worker.cpp
@@ -71,12 +71,14 @@ void handle_event_completion(DSPDevice *device)
ke->free_tmp_bufs();
CommandQueue *queue = 0;
+ cl_command_queue d_queue = 0;
cl_command_queue_properties queue_props = 0;
- event->info(CL_EVENT_COMMAND_QUEUE, sizeof(CommandQueue *), &queue, 0);
+ event->info(CL_EVENT_COMMAND_QUEUE, sizeof(cl_command_queue), &d_queue, 0);
+ queue = pobj(d_queue);
if (queue)
- queue->info(CL_QUEUE_PROPERTIES, sizeof(cl_command_queue_properties),
+ queue->info(CL_QUEUE_PROPERTIES, sizeof(cl_command_queue_properties),
&queue_props, 0);
// an event may be released once it is Complete
@@ -108,11 +110,13 @@ bool handle_event_dispatch(DSPDevice *device)
*--------------------------------------------------------------------*/
Event::Type t = event->type();
CommandQueue * queue = 0;
+ cl_command_queue d_queue = 0;
cl_command_queue_properties queue_props = 0;
errcode = CL_SUCCESS;
- event->info(CL_EVENT_COMMAND_QUEUE, sizeof(CommandQueue *), &queue, 0);
+ event->info(CL_EVENT_COMMAND_QUEUE, sizeof(cl_command_queue), &d_queue, 0);
+ queue = pobj(d_queue);
if (queue)
queue->info(CL_QUEUE_PROPERTIES, sizeof(cl_command_queue_properties),