From: Zhigang Gong Date: Wed, 28 Aug 2013 08:53:36 +0000 (+0800) Subject: Runtime: fix the incorrect platform info size (conformance). X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fee00f89281d95ddfb1a855ac439c3858b1d53c5;p=contrib%2Fbeignet.git Runtime: fix the incorrect platform info size (conformance). As sizeof(str) already includes the '\0', we should not add 1 on the return size. Conformance case computeinfo could pass with this patch. (28-Aug 16:51:00) BEGIN Compute Info : ==> CL_DEVICE_ERROR_CORRECTION_SUPPORT == 0 ==> CL_DEVICE_ERROR_CORRECTION_SUPPORT == 0 ==> CL_DEVICE_ERROR_CORRECTION_SUPPORT == 0 PASSED computeinfo. Signed-off-by: Zhigang Gong Reviewed-by: "Yang, Rong R" --- diff --git a/src/cl_platform_id.c b/src/cl_platform_id.c index 33915ce..fdf0d78 100644 --- a/src/cl_platform_id.c +++ b/src/cl_platform_id.c @@ -28,7 +28,7 @@ #define DECL_INFO_STRING(FIELD, STRING) \ .FIELD = STRING, \ - .JOIN(FIELD,_sz) = sizeof(STRING) + 1, + .JOIN(FIELD,_sz) = sizeof(STRING), static struct _cl_platform_id intel_platform_data = { INIT_ICD(dispatch)