[Beignet] [PATCH 1/5] Runtime: should initialize ptr when do clEnqueueWriteImage.

Zhigang Gong zhigang.gong at linux.intel.com
Thu Sep 5 22:43:03 PDT 2013


Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
 src/cl_api.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cl_api.c b/src/cl_api.c
index 30d0b11..7fe736e 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -1507,6 +1507,7 @@ clEnqueueWriteImage(cl_command_queue     command_queue,
   data->region[0]   = region[0];  data->region[1] = region[1];  data->region[2] = region[2];
   data->row_pitch   = row_pitch;
   data->slice_pitch = slice_pitch;
+  data->ptr = ptr;
 
   if(handle_events(command_queue, num_events_in_wait_list, event_wait_list,
                    event, data, CL_COMMAND_WRITE_IMAGE) == CL_ENQUEUE_EXECUTE_IMM) {
-- 
1.7.9.5



More information about the Beignet mailing list