| 2449 | } |
| 2450 | |
| 2451 | static void* CL_API_CALL EnqueueMapImage(cl_command_queue command_queue, cl_mem image, |
| 2452 | cl_bool blocking_map, cl_map_flags map_flags, |
| 2453 | const size_t* origin, const size_t* region, |
| 2454 | size_t* image_row_pitch, size_t* image_slice_pitch, |
| 2455 | cl_uint num_events_in_wait_list, |
| 2456 | const cl_event* event_wait_list, cl_event* event, |
| 2457 | cl_int* errcode_ret) { |
| 2458 | std::ostringstream ss; |
| 2459 | Rec r(&ss); |
| 2460 | |
| 2461 | ss << "clEnqueueMapImage(" << command_queue << ','; |
| 2462 | ss << image << ',' << getBoolString(blocking_map) << ','; |
| 2463 | ss << getMapFlagsString(map_flags) << ','; |
| 2464 | ss << getNDimString(origin, 3) << ','; |
| 2465 | ss << getNDimString(region, 3) << ','; |
| 2466 | ss << image_row_pitch << ',' << image_slice_pitch << ','; |
| 2467 | ss << num_events_in_wait_list << ','; |
| 2468 | ss << getHandlesString(event_wait_list, num_events_in_wait_list) << ','; |
| 2469 | |
| 2470 | addRec(&r); |
| 2471 | void* ret = original_dispatch.EnqueueMapImage( |
| 2472 | command_queue, image, blocking_map, map_flags, origin, region, image_row_pitch, |
| 2473 | image_slice_pitch, num_events_in_wait_list, event_wait_list, event, errcode_ret); |
| 2474 | delRec(&r); |
| 2475 | |
| 2476 | ss << getHexString(event) << ',' << getErrorString(errcode_ret); |
| 2477 | ss << ") = " << ret; |
| 2478 | ss << std::endl; |
| 2479 | std::cerr << ss.str(); |
| 2480 | return ret; |
| 2481 | } |
| 2482 | |
| 2483 | static cl_int CL_API_CALL EnqueueUnmapMemObject(cl_command_queue command_queue, cl_mem memobj, |
| 2484 | void* mapped_ptr, cl_uint num_events_in_wait_list, |
nothing calls this directly
no test coverage detected