If user add another 'const' modifier, there may be some warning. But it is not 
a big issue.
Looks good to me.

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf 
Of Zhigang Gong
Sent: Wednesday, October 09, 2013 2:37 PM
To: [email protected]
Cc: Zhigang Gong
Subject: [Beignet] [PATCH] GBE: sampler_t should always be a const int.

Signed-off-by: Zhigang Gong <[email protected]>
---
 backend/src/ocl_stdlib.tmpl.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h 
index 170ec70..1e3639a 100644
--- a/backend/src/ocl_stdlib.tmpl.h
+++ b/backend/src/ocl_stdlib.tmpl.h
@@ -85,7 +85,7 @@ struct _image2d_t;
 typedef __texture struct _image2d_t* __image2d_t;  struct _image3d_t;  typedef 
__texture struct _image3d_t* __image3d_t; -typedef uint __sampler_t;
+typedef const uint __sampler_t;
 typedef size_t __event_t;
 #define image2d_t __image2d_t
 #define image3d_t __image3d_t
--
1.7.9.5

_______________________________________________
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