[Beignet] [PATCH 2/4] Remove non-used data in clEnqueueMapImage to fix, and fix a clGetEventInfo bug.
Zhigang Gong
zhigang.gong at linux.intel.com
Tue Sep 17 01:39:20 PDT 2013
LGTM, thanks.
On Tue, Sep 17, 2013 at 04:09:59PM +0800, Yang Rong wrote:
>
> Signed-off-by: Yang Rong <rong.r.yang at intel.com>
> ---
> src/cl_api.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/src/cl_api.c b/src/cl_api.c
> index b010126..9270b65 100644
> --- a/src/cl_api.c
> +++ b/src/cl_api.c
> @@ -1095,11 +1095,6 @@ clGetEventInfo(cl_event event,
> CHECK_EVENT(event);
>
> if (param_name == CL_EVENT_COMMAND_QUEUE) {
> - if(event->queue == NULL) {
> - param_value_size_ret = 0;
> - param_value = NULL;
> - return err;
> - }
> FILL_GETINFO_RET (cl_command_queue, 1, &event->queue, CL_SUCCESS);
> } else if (param_name == CL_EVENT_CONTEXT) {
> FILL_GETINFO_RET (cl_context, 1, &event->ctx, CL_SUCCESS);
> @@ -2171,10 +2166,6 @@ clEnqueueMapImage(cl_command_queue command_queue,
> data = &no_wait_data;
> data->type = EnqueueMapImage;
> data->mem_obj = mem;
> - data->origin[0] = origin[0]; data->origin[1] = origin[1]; data->origin[2] = origin[2];
> - data->region[0] = region[0]; data->region[1] = region[1]; data->region[2] = region[2];
> - data->row_pitch = *image_row_pitch;
> - data->slice_pitch = *image_slice_pitch;
> data->ptr = ptr;
> data->offset = offset;
>
> --
> 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