mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
test_basic/enqueue_map: Initialize all the data (#1417)
This commit is contained in:
@@ -146,7 +146,7 @@ int test_enqueue_map_image(cl_device_id deviceID, cl_context context, cl_command
|
|||||||
clMemWrapper memObject;
|
clMemWrapper memObject;
|
||||||
log_info("Testing with cl_mem_flags src: %s\n", flag_set_names[src_flag_id]);
|
log_info("Testing with cl_mem_flags src: %s\n", flag_set_names[src_flag_id]);
|
||||||
|
|
||||||
generate_random_data(kUInt, (unsigned int)(imageSize * imageSize), d,
|
generate_random_data(kUInt, (unsigned int)(imageSize * imageSize * 4), d,
|
||||||
hostPtrData);
|
hostPtrData);
|
||||||
memcpy(referenceData, hostPtrData, imageDataSize);
|
memcpy(referenceData, hostPtrData, imageDataSize);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user