mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix max limit query for test_3D_2D_array. (#536)
test_3D_2D_array uses max limits of 3D images for both 3D images and 2D_array. This leads to testing of sizes larger than 2D array limits. Use correct CL_MEM_OBJECT_IMAGE_TYPE to avoid test-cases with invalid sizes.
This commit is contained in:
committed by
Kévin Petit
parent
0061d7c0f2
commit
2343324ee6
@@ -320,7 +320,7 @@ int test_copy_image_set_3D_2D_array(cl_device_id device, cl_context context, cl_
|
||||
size_t sizes2Darray[100][3];
|
||||
|
||||
// Try to allocate a bit smaller images because we need the 3D ones as well for the copy.
|
||||
get_max_sizes(&numbeOfSizes, 100, sizes2Darray, maxWidth, maxHeight, maxDepth, maxArraySize, maxAllocSize/2, memSize/2, CL_MEM_OBJECT_IMAGE3D, srcImageInfo.format);
|
||||
get_max_sizes(&numbeOfSizes, 100, sizes2Darray, maxWidth, maxHeight, maxDepth, maxArraySize, maxAllocSize/2, memSize/2, CL_MEM_OBJECT_IMAGE2D_ARRAY, srcImageInfo.format);
|
||||
get_max_sizes(&numbeOfSizes, 100, sizes3D, max3DWidth, max3DHeight, maxDepth, maxArraySize, maxAllocSize/2, memSize/2, CL_MEM_OBJECT_IMAGE3D, dstImageInfo.format);
|
||||
|
||||
for( size_t idx = 0; idx < numbeOfSizes; idx++ )
|
||||
|
||||
Reference in New Issue
Block a user