[Beignet] [PATCH] GBE: fix a wrong type of cl_device_info.
Zhigang Gong
zhigang.gong at intel.com
Fri Oct 24 02:55:26 PDT 2014
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 at intel.com>
---
src/cl_device_id.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cl_device_id.h b/src/cl_device_id.h
index afc32e2..b2c0e5b 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;
--
1.8.3.2
More information about the Beignet
mailing list