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

Song, Ruiling ruiling.song at intel.com
Wed Jun 25 20:28:16 PDT 2014


LGTM!

Thanks!
Ruiling
-----Original Message-----
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Zhigang Gong
Sent: Thursday, June 26, 2014 10:40 AM
To: beignet at lists.freedesktop.org
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 <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

_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list