| 1346 | } |
| 1347 | |
| 1348 | int 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 | |
| 1367 | int checkFor3DImageSupport(cl_device_id device) |
| 1368 | { |
no outgoing calls