[Beignet] [PATCH v2 2/4] Add extensions intel_accelerator and basic intel_motion_estimation.
Song, Ruiling
ruiling.song at intel.com
Sun Sep 13 19:14:30 PDT 2015
> --- a/src/cl_command_queue.c
> +++ b/src/cl_command_queue.c
> @@ -140,10 +140,18 @@
> cl_command_queue_bind_image(cl_command_queue queue, cl_kernel k)
>
> image = cl_mem_image(k->args[id].mem);
> set_image_info(k->curbe, &k->images[i], image);
> - cl_gpgpu_bind_image(gpgpu, k->images[i].idx, image->base.bo, image-
> >offset,
> - image->intel_fmt, image->image_type, image->bpp,
> - image->w, image->h, image->depth,
> - image->row_pitch, image->slice_pitch, (cl_gpgpu_tiling)image-
> >tiling);
> + if(k->vme){
> + assert((image->fmt.image_channel_order == CL_R) && (image-
> >fmt.image_channel_data_type == CL_UNORM_INT8));
Using an assert does not comply with:
https://www.khronos.org/registry/cl/extensions/intel/cl_intel_motion_estimation.txt
- CL_INVALID_IMAGE_SIZE if an image object is specified as an argument value
and the image dimensions (image width, height, specified or compute row
and/or slice pitch) are not supported by this built-in kernel, as listed
above.
- CL_INVALID_IMAGE_FORMAT if an image object is specified as an argument
value and the image format is not one of the image formats supported by
this built-in kernel, as listed above.
You need also check invalid image size.
Thanks!
Ruiling
More information about the Beignet
mailing list