From d4cc1ae0b6409a19c03fccb4cda4922074e5782b Mon Sep 17 00:00:00 2001 From: Jeremy Kemp Date: Thu, 7 Mar 2019 09:39:42 +0000 Subject: [PATCH] Pass CL_MAP_READ to clEnqueueMapImage as passing 0 is invalid --- test_conformance/basic/test_hostptr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_conformance/basic/test_hostptr.c b/test_conformance/basic/test_hostptr.c index 9a6302a8..fcef6ab3 100644 --- a/test_conformance/basic/test_hostptr.c +++ b/test_conformance/basic/test_hostptr.c @@ -228,7 +228,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");