Other Extension Metadata
- Last Modified Date
-
2025-01-06
- IP Status
-
No known IP claims.
- Interactions and External Dependencies
-
-
This extension interacts with
cl_khr_image2d_ from_ buffer
-
- Contributors
-
-
Kevin Petit, Arm Ltd.
-
Jeremy Kemp, Imagination Technologies
-
Alastair Murray, Codeplay Software Ltd.
-
Balaji Calidas, Qualcomm
-
Description
This extension enables applications to query requirements for an image without having to create the image.
New Enums
-
cl_image_requirements_ info_ ext -
CL_IMAGE_REQUIREMENTS_ ROW_ PITCH_ ALIGNMENT_ EXT -
CL_IMAGE_REQUIREMENTS_ BASE_ ADDRESS_ ALIGNMENT_ EXT -
CL_IMAGE_REQUIREMENTS_ SIZE_ EXT -
CL_IMAGE_REQUIREMENTS_ MAX_ WIDTH_ EXT -
CL_IMAGE_REQUIREMENTS_ MAX_ HEIGHT_ EXT -
CL_IMAGE_REQUIREMENTS_ MAX_ DEPTH_ EXT -
CL_IMAGE_REQUIREMENTS_ MAX_ ARRAY_ SIZE_ EXT
-
Conformance tests
-
Basic checks for
CL_IMAGE_andREQUIREMENTS_ BASE_ ADDRESS_ ALIGNMENT_ EXT CL_IMAGE_REQUIREMENTS_ ROW_ PITCH_ ALIGNMENT_ EXT -
For all image formats and types
-
Check that the
CL_IMAGE_andREQUIREMENTS_ BASE_ ADDRESS_ ALIGNMENT_ EXT CL_IMAGE_queries can be performed successfully and that the values returned are a power of two.REQUIREMENTS_ ROW_ PITCH_ ALIGNMENT_ EXT
-
-
-
Check consistency with
cl_khr_image2d_from_buffer-
When
cl_khr_image2d_from_bufferis supported, check that the value returned byCL_DEVICE_after converting in bytes for the supported format with the biggest element size (channel data type size * number of channels) is greater than or equal to the value returned byIMAGE_ PITCH_ ALIGNMENT CL_IMAGE_for all supported formats.REQUIREMENTS_ ROW_ PITCH_ ALIGNMENT_ EXT -
When
cl_khr_image2d_from_bufferis supported, check that the value returned byCL_DEVICE_after converting in bytes for the supported format with the biggest element size (channel data type size * number of channels) is greater than or equal to the value returned byIMAGE_ BASE_ ADDRESS_ ALIGNMENT CL_IMAGE_for all supported formats.REQUIREMENTS_ BASE_ ADDRESS_ ALIGNMENT_ EXT
-
-
Negative tests for
CL_IMAGE_REQUIREMENTS_ SIZE_ EXT -
Check that attempting to perform the
CL_IMAGE_query without specifying the image_format results inREQUIREMENTS_ SIZE_ EXT CL_INVALID_being returned.VALUE -
Check that attempting to perform the
CL_IMAGE_query without specifying the image_desc results inREQUIREMENTS_ SIZE_ EXT CL_INVALID_being returned.VALUE
-
-
Consistency checks for
CL_IMAGE_REQUIREMENTS_ SIZE_ EXT -
When creating 2D images from a buffer is supported, for all formats and a selection of image dimensions
-
Check that the
CL_IMAGE_query can be performed successfully.REQUIREMENTS_ SIZE_ EXT -
Create a buffer with the size returned and check that an image can successfully be created from the buffer.
-
Check that the value returned for
CL_MEM_for the image is the same as the value returned forSIZE CL_IMAGE_.REQUIREMENTS_ SIZE_ EXT
-
-
-
Consistency checks for
CL_IMAGE_REQUIREMENTS_ MAX_ WIDTH_ EXT -
For all image formats, image types and a selection of values for other members in image_desc (that MUST include
0)-
Check that the
CL_IMAGE_query can be performed successfullyREQUIREMENTS_ MAX_ WIDTH_ EXT -
Check that the value is smaller than or equal to the value returned for
CL_DEVICE_for images ofIMAGE_ MAX_ BUFFER_ SIZE CL_MEM_type or smaller than or equal to the value returned forOBJECT_ IMAGE1D_ BUFFER CL_DEVICE_for images ofIMAGE3D_ MAX_ WIDTH CL_MEM_type or smaller than or equal to the value returned forOBJECT_ IMAGE3D CL_DEVICE_for all other image types.IMAGE2D_ MAX_ WIDTH
-
-
-
Negative tests for
CL_IMAGE_REQUIREMENTS_ MAX_ HEIGHT_ EXT -
Attempt to perform the
CL_IMAGE_query on all image types for which it is not validREQUIREMENTS_ MAX_ HEIGHT_ EXT -
Check that
CL_INVALID_is returned in all cases.IMAGE_ DESCRIPTOR
-
-
Consistency checks for
CL_IMAGE_REQUIREMENTS_ MAX_ HEIGHT_ EXT -
For all image formats, valid image types and a selection of values for other members in image_desc (that MUST include
0)-
Check that the
CL_IMAGE_query can be performed successfullyREQUIREMENTS_ MAX_ HEIGHT_ EXT -
Check that the value is smaller than or equal to the value returned for
CL_DEVICE_for 2D or 2D array images orIMAGE2D_ MAX_ HEIGHT CL_DEVICE_for 3D images.IMAGE3D_ MAX_ HEIGHT
-
-
-
Negative testing for
CL_IMAGE_REQUIREMENTS_ MAX_ DEPTH_ EXT -
Attempt to perform the
CL_IMAGE_query on all image types for which it is not validREQUIREMENTS_ MAX_ DEPTH_ EXT -
Check that
CL_INVALID_is returned in all cases.IMAGE_ DESCRIPTOR
-
-
Consistency checks for
CL_IMAGE_REQUIREMENTS_ MAX_ DEPTH_ EXT -
For all image formats, valid image types and a selection of values for other members in image_desc (that MUST include
0)-
Check that the
CL_IMAGE_query can be performed successfullyREQUIREMENTS_ MAX_ DEPTH_ EXT -
Check that the value is smaller than or equal to the value returned for
CL_DEVICE_.IMAGE3D_ MAX_ DEPTH
-
-
-
Negative testing for
CL_IMAGE_REQUIREMENTS_ MAX_ ARRAY_ SIZE_ EXT -
Attempt to perform the
CL_IMAGE_query on all image types for which it is not validREQUIREMENTS_ MAX_ ARRAY_ SIZE_ EXT -
Check that
CL_INVALID_is returned in all cases.IMAGE_ DESCRIPTOR
-
-
Consistency checks for
CL_IMAGE_REQUIREMENTS_ MAX_ ARRAY_ SIZE_ EXT -
For all image formats, valid image types and a selection of values for other members in image_desc (that MUST include
0)-
Check that the
CL_IMAGE_query can be performed successfullyREQUIREMENTS_ MAX_ ARRAY_ SIZE_ EXT -
Check that the value is smaller than or equal to the value returned for
CL_DEVICE_.IMAGE_ MAX_ ARRAY_ SIZE
-
-
-
General negative testing for clGetImageRequirementsInfoEXT
-
Write tests for all possible testable generic error codes.
-
Document Notes
For more information, see the OpenCL Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.