LGTM!

Thanks!
Ruiling
-----Original Message-----
From: Beignet [mailto:[email protected]] On Behalf Of 
Zhigang Gong
Sent: Thursday, June 26, 2014 10:40 AM
To: [email protected]
Cc: Gong, Zhigang
Subject: [Beignet] [PATCH] GBE: fix some bugs in ocl stdlib header files.

The printf's prototype was added twice incorrectly.

Signed-off-by: Zhigang Gong <[email protected]>
---
 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

_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet
_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to