[Beignet] [PATCH] Correct event type' typo.

Zhigang Gong zhigang.gong at linux.intel.com
Fri Aug 30 01:37:56 PDT 2013


LGTM, pushed, thanks.

On Thu, Aug 29, 2013 at 01:07:38PM +0800, Yang Rong wrote:
> 
> Signed-off-by: Yang Rong <rong.r.yang at intel.com>
> ---
>  src/cl_api.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/src/cl_api.c b/src/cl_api.c
> index 5bb48db..9383c31 100644
> --- a/src/cl_api.c
> +++ b/src/cl_api.c
> @@ -1291,7 +1291,7 @@ clEnqueueWriteBuffer(cl_command_queue    command_queue,
>    data->size      = size;
>  
>    if(handle_events(command_queue, num_events_in_wait_list, event_wait_list,
> -                   event, data, CL_COMMAND_READ_BUFFER) == CL_ENQUEUE_EXECUTE_IMM) {
> +                   event, data, CL_COMMAND_WRITE_BUFFER) == CL_ENQUEUE_EXECUTE_IMM) {
>      err = cl_enqueue_handle(data);
>      if(event) cl_event_set_status(*event, CL_COMPLETE);
>    }
> @@ -1427,7 +1427,7 @@ clEnqueueReadImage(cl_command_queue      command_queue,
>    data->slice_pitch = slice_pitch;
>  
>    if(handle_events(command_queue, num_events_in_wait_list, event_wait_list,
> -                   event, data, CL_COMMAND_READ_BUFFER) == CL_ENQUEUE_EXECUTE_IMM) {
> +                   event, data, CL_COMMAND_READ_IMAGE) == CL_ENQUEUE_EXECUTE_IMM) {
>      err = cl_enqueue_handle(data);
>      if(event) cl_event_set_status(*event, CL_COMPLETE);
>    }
> @@ -1509,7 +1509,7 @@ clEnqueueWriteImage(cl_command_queue     command_queue,
>    data->slice_pitch = slice_pitch;
>  
>    if(handle_events(command_queue, num_events_in_wait_list, event_wait_list,
> -                   event, data, CL_COMMAND_READ_BUFFER) == CL_ENQUEUE_EXECUTE_IMM) {
> +                   event, data, CL_COMMAND_WRITE_IMAGE) == CL_ENQUEUE_EXECUTE_IMM) {
>      err = cl_enqueue_handle(data);
>      if(event) cl_event_set_status(*event, CL_COMPLETE);
>    }
> @@ -1679,7 +1679,7 @@ clEnqueueMapBuffer(cl_command_queue  command_queue,
>    data->ptr         = ptr;
>  
>    if(handle_events(command_queue, num_events_in_wait_list, event_wait_list,
> -                   event, data, CL_COMMAND_READ_BUFFER) == CL_ENQUEUE_EXECUTE_IMM) {
> +                   event, data, CL_COMMAND_MAP_BUFFER) == CL_ENQUEUE_EXECUTE_IMM) {
>      err = cl_enqueue_handle(data);
>      if(event) cl_event_set_status(*event, CL_COMPLETE);
>    }
> @@ -1762,7 +1762,7 @@ clEnqueueMapImage(cl_command_queue   command_queue,
>    data->ptr         = ptr;
>  
>    if(handle_events(command_queue, num_events_in_wait_list, event_wait_list,
> -                   event, data, CL_COMMAND_READ_BUFFER) == CL_ENQUEUE_EXECUTE_IMM) {
> +                   event, data, CL_COMMAND_MAP_IMAGE) == CL_ENQUEUE_EXECUTE_IMM) {
>      err = cl_enqueue_handle(data);
>      if(event) cl_event_set_status(*event, CL_COMPLETE);
>    }
> @@ -1799,7 +1799,7 @@ clEnqueueUnmapMemObject(cl_command_queue  command_queue,
>    data->ptr         = mapped_ptr;
>  
>    if(handle_events(command_queue, num_events_in_wait_list, event_wait_list,
> -                   event, data, CL_COMMAND_READ_BUFFER) == CL_ENQUEUE_EXECUTE_IMM) {
> +                   event, data, CL_COMMAND_UNMAP_MEM_OBJECT) == CL_ENQUEUE_EXECUTE_IMM) {
>      err = cl_enqueue_handle(data);
>      if(event) cl_event_set_status(*event, CL_COMPLETE);
>    }
> @@ -1901,7 +1901,7 @@ clEnqueueNDRangeKernel(cl_command_queue  command_queue,
>    data->queue = command_queue;
>  
>    if(handle_events(command_queue, num_events_in_wait_list, event_wait_list,
> -                   event, data, CL_COMMAND_READ_BUFFER) == CL_ENQUEUE_EXECUTE_IMM) {
> +                   event, data, CL_COMMAND_NDRANGE_KERNEL) == CL_ENQUEUE_EXECUTE_IMM) {
>      err = cl_command_queue_flush(command_queue);
>    }
>  
> -- 
> 1.8.1.2
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list