MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / checkForImageSupport

Function checkForImageSupport

test_common/harness/kernelHelpers.cpp:1348–1365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1346}
1347
1348int checkForImageSupport(cl_device_id device)
1349{
1350 cl_uint i;
1351 int error;
1352
1353
1354 /* Check the device props to see if images are supported at all first */
1355 error =
1356 clGetDeviceInfo(device, CL_DEVICE_IMAGE_SUPPORT, sizeof(i), &i, NULL);
1357 test_error(error, "Unable to query device for image support");
1358 if (i == 0)
1359 {
1360 return CL_IMAGE_FORMAT_NOT_SUPPORTED;
1361 }
1362
1363 /* So our support is good */
1364 return 0;
1365}
1366
1367int checkFor3DImageSupport(cl_device_id device)
1368{

Callers 15

test_renderbuffer_readFunction · 0.85
test_renderbuffer_writeFunction · 0.85
test_images_read_commonFunction · 0.85
test_images_write_commonFunction · 0.85
find_good_image_sizeFunction · 0.85
doTestFunction · 0.85
runBuildTestMethod · 0.85
test_enum_valuesFunction · 0.85
REGISTER_TESTFunction · 0.85
REGISTER_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_renderbuffer_readFunction · 0.68
test_renderbuffer_writeFunction · 0.68
test_images_read_commonFunction · 0.68
test_images_write_commonFunction · 0.68
runBuildTestMethod · 0.68
test_enum_valuesFunction · 0.68
REGISTER_TESTFunction · 0.68
REGISTER_TESTFunction · 0.68
REGISTER_TESTFunction · 0.68
REGISTER_TESTFunction · 0.68