summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@intel.com>2014-10-24 17:55:26 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-10-27 13:01:54 +0800
commit6eb5d674e53f6285c56ca07a255b0d16c4f27a58 (patch)
tree385af16685895fbe95c6e0d17490661b5bf74440
parent4a775c326b1a6a7fa46b4c29326754b5ef4f9bad (diff)
GBE: fix a wrong type of cl_device_info.
Per OpenCL spec 1.2: CL_DEVICE_IMAGE_MAX_BUFFER_SIZE should be size_t type rather than cl_ulong. This bug will cause problems on i386 platform. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> Tested-by: "Meng, Mengmeng" <mengmeng.meng@intel.com>
-rw-r--r--src/cl_device_id.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_device_id.h b/src/cl_device_id.h
index afc32e2a..b2c0e5be 100644
--- a/src/cl_device_id.h
+++ b/src/cl_device_id.h
@@ -60,7 +60,7 @@ struct _cl_device_id {
size_t image3d_max_width;
size_t image3d_max_height;
size_t image3d_max_depth;
- cl_ulong image_mem_size;
+ size_t image_mem_size;
cl_uint max_samplers;
size_t max_parameter_size;
cl_uint mem_base_addr_align;