Skip to content

Commit 5526b28

Browse files
committed
clarify CL_INVALID_IMAGE_SIZE error conditions
For clCreateImageWithProperties, implementations are allowed to return CL_INVALID_IMAGE_SIZE when image dimensions are invalid, not just when image dimensions exceed the maximum image dimensions supported by al devices in the context.
1 parent 7b5621b commit 5526b28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/opencl_runtime_layer.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,8 +2213,8 @@ endif::cl_ext_image_from_buffer[]
22132213
image object and the rules described above are not followed.
22142214
* {CL_INVALID_IMAGE_DESCRIPTOR} if values specified in _image_desc_ are not
22152215
valid or if _image_desc_ is `NULL`.
2216-
* {CL_INVALID_IMAGE_SIZE} if image dimensions specified in _image_desc_
2217-
exceed the maximum image dimensions described in the
2216+
* {CL_INVALID_IMAGE_SIZE} if the image dimensions specified in _image_desc_
2217+
are not valid or exceed the maximum image dimensions described in the
22182218
<<device-queries-table,Device Queries>> table for all devices
22192219
in _context_.
22202220
* {CL_INVALID_HOST_PTR} if _host_ptr_ is `NULL` and {CL_MEM_USE_HOST_PTR} or

0 commit comments

Comments
 (0)