fix the missing assignment for offset
authorLu Guanqun <guanqun.lu@intel.com>
Mon, 23 Sep 2013 07:06:27 +0000 (15:06 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 26 Sep 2013 02:14:17 +0000 (10:14 +0800)
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/cl_mem.h

index ac09c3b..ca601f9 100644 (file)
@@ -132,6 +132,7 @@ cl_mem_image_init(struct _cl_mem_image *image, size_t w, size_t h,
   image->tiling = tiling;
   image->tile_x = tile_x;
   image->tile_y = tile_y;
+  image->offset = offset;
 }
 
 struct _cl_mem_buffer {