summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuo Xionghu <xionghu.luo@intel.com>2014-12-23 11:34:16 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-12-23 14:32:51 +0800
commitfb4bced99b7c08d0d43386abf33448860fb7fc41 (patch)
tree6e87787793bf2ba7954cff00e4d6d38317339d0e /src
parent41f2aeaf73cf98855cb658f1505fcac978c37609 (diff)
fix max_parameter_size not correct on x86 platforms.
this value should depend on the pointer size according to the system. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/cl_gen75_device.h2
-rw-r--r--src/cl_gen7_device.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cl_gen75_device.h b/src/cl_gen75_device.h
index d6743a4e..768721d5 100644
--- a/src/cl_gen75_device.h
+++ b/src/cl_gen75_device.h
@@ -19,7 +19,7 @@
/* Common fields for both SNB devices (either GT1 or GT2)
*/
-.max_parameter_size = 1024,
+.max_parameter_size = sizeof(cl_mem) * 128,
.global_mem_cache_line_size = 128, /* XXX */
.global_mem_cache_size = 8 << 10, /* XXX */
.local_mem_type = CL_GLOBAL,
diff --git a/src/cl_gen7_device.h b/src/cl_gen7_device.h
index 470531ae..51978177 100644
--- a/src/cl_gen7_device.h
+++ b/src/cl_gen7_device.h
@@ -18,7 +18,7 @@
*/
/* Common fields for both IVB devices (either GT1 or GT2) */
-.max_parameter_size = 1024,
+.max_parameter_size = sizeof(cl_mem) * 128,
.global_mem_cache_line_size = 128, /* XXX */
.global_mem_cache_size = 8 << 10, /* XXX */
.local_mem_type = CL_GLOBAL,