[Beignet] [PATCH] ICD dispatch table must be first
Simon Richter
Simon.Richter at hogyros.de
Fri Sep 27 21:39:50 PDT 2013
The ICD loader expects the first member of any dispatchable object to be
the dispatch table.
Signed-off-by: Simon Richter <Simon.Richter at hogyros.de>
---
src/cl_mem.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cl_mem.h b/src/cl_mem.h
index dc9192a..bc6d526 100644
--- a/src/cl_mem.h
+++ b/src/cl_mem.h
@@ -61,8 +61,8 @@ enum cl_mem_type {
#define IS_GL_IMAGE(mem) (mem->type == CL_MEM_GL_IMAGE_TYPE)
typedef struct _cl_mem {
- uint64_t magic; /* To identify it as a memory object */
DEFINE_ICD(dispatch)
+ uint64_t magic; /* To identify it as a memory object */
cl_mem prev, next; /* We chain the memory buffers together */
enum cl_mem_type type;
volatile int ref_n; /* This object is reference counted */
--
1.7.10.4
More information about the Beignet
mailing list