[Beignet] [PATCH] Add ICD dispatch table in cloned kernels

Simon Richter Simon.Richter at hogyros.de
Wed May 22 07:38:16 PDT 2013


---
 src/cl_kernel.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cl_kernel.c b/src/cl_kernel.c
index d8671c6..90aa0c2 100644
--- a/src/cl_kernel.c
+++ b/src/cl_kernel.c
@@ -232,6 +232,7 @@ cl_kernel_dup(cl_kernel from)
   if (UNLIKELY(from == NULL))
     return NULL;
   TRY_ALLOC_NO_ERR (to, CALLOC(struct _cl_kernel));
+  SET_ICD(to->dispatch)
   to->bo = from->bo;
   to->const_bo = from->const_bo;
   to->opaque = from->opaque;
-- 
1.7.10.4



More information about the Beignet mailing list