Forgot to merge it with previous patch. Now commit this one
separately to fix the bug on 64 bit system.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: Simon Richter <simon.richter@hogyros.de>
set_image_info(char *curbe, struct ImageInfo * image_info, cl_mem image)
{
if (image_info->wSlot >= 0)
- memcpy(curbe + image_info->wSlot, &image->w, sizeof(image->w));
+ *(uint32_t*)(curbe + image_info->wSlot) = image->w;
if (image_info->hSlot >= 0)
- memcpy(curbe + image_info->hSlot, &image->h, sizeof(image->h));
+ *(uint32_t*)(curbe + image_info->hSlot) = image->h;
}
LOCAL cl_int