mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Pass CL_MAP_READ to clEnqueueMapImage as passing 0 is invalid
This commit is contained in:
committed by
Kévin Petit
parent
6bc5236b1c
commit
0f507eb84f
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user