Pass CL_MAP_READ to clEnqueueMapImage as passing 0 is invalid

This commit is contained in:
Grzegorz Wawiorko
2019-03-15 10:20:08 +01:00
committed by Kévin Petit
parent 6bc5236b1c
commit 0f507eb84f

View File

@@ -224,7 +224,7 @@ test_hostptr(cl_device_id device, cl_context context, cl_command_queue queue, in
log_info("Mapping the CL_MEM_USE_HOST_PTR image with clEnqueueMapImage...\n");
size_t row_pitch;
lock_buffer = clEnqueueMapImage(queue, streams[5], CL_TRUE,
0, origin, region,
CL_MAP_READ, origin, region,
&row_pitch, NULL,
0, NULL, NULL, &err);
test_error(err, "clEnqueueMapImage failed");