[Beignet] [PATCH] GBE: sampler_t should always be a const int.

Zhigang Gong zhigang.gong at linux.intel.com
Tue Oct 8 23:36:43 PDT 2013


Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
 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



More information about the Beignet mailing list