[Beignet] [PATCH] GBE: fix some bugs in ocl stdlib header files.

Zhigang Gong zhigang.gong at intel.com
Wed Jun 25 19:40:21 PDT 2014


The printf's prototype was added twice incorrectly.

Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
 backend/src/ocl_stdlib.tmpl.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h
index 412966e..42f5e85 100755
--- a/backend/src/ocl_stdlib.tmpl.h
+++ b/backend/src/ocl_stdlib.tmpl.h
@@ -4585,10 +4585,8 @@ int __gen_ocl_get_image_channel_data_type(uint surface_id);
 int __gen_ocl_get_image_channel_order(uint surface_id);
 int __gen_ocl_get_image_depth(uint surface_id);
 /* The printf function. */
-int __gen_ocl_printf_stub(const char * format, ...);
-/* The printf function. */
-/* From LLVM 3.5, c string are all in constant address space */
-#if 100*__clang_major__ + __clang_minor__ < 305
+/* From LLVM 3.4, c string are all in constant address space */
+#if 100*__clang_major__ + __clang_minor__ < 304
 int __gen_ocl_printf_stub(const char * format, ...);
 #else
 int __gen_ocl_printf_stub(constant char * format, ...);
-- 
1.8.3.2



More information about the Beignet mailing list