@@ -954,6 +954,7 @@ endif::cl_ext_immutable_memory_objects[]
954954 the _origin_ field of the {cl_buffer_region_TYPE} structure passed in
955955 _buffer_create_info_ is aligned to the {CL_DEVICE_MEM_BASE_ADDR_ALIGN}
956956 value.
957+ This error code is <<unified-spec, missing before>> version 1.1.
957958 * {CL_MEM_OBJECT_ALLOCATION_FAILURE}
958959 ** if there is a failure to allocate memory for sub-buffer object
959960 * {CL_OUT_OF_RESOURCES}
@@ -4068,8 +4069,9 @@ endif::cl_khr_mipmap_image[]
40684069 _command_queue_
40694070 * {CL_MEM_OBJECT_ALLOCATION_FAILURE}
40704071 ** if there is a failure to allocate memory for data store associated with _image_
4071- ifdef::cl_ext_immutable_memory_objects[]
40724072 * {CL_INVALID_OPERATION}
4073+ ** if the device associated with _command_queue_ does not support images (the query for {CL_DEVICE_IMAGE_SUPPORT} returns {CL_FALSE})
4074+ ifdef::cl_ext_immutable_memory_objects[]
40734075 ** if _image_ was created with {CL_MEM_IMMUTABLE_EXT}
40744076endif::cl_ext_immutable_memory_objects[]
40754077 * {CL_OUT_OF_RESOURCES}
@@ -4164,55 +4166,57 @@ argument value specified when _src_image_ or _dst_buffer_ is created is ignored
41644166successfully.
41654167Otherwise, it returns one of the following errors:
41664168
4167- * {CL_INVALID_COMMAND_QUEUE} if _command_queue_ is not a valid host
4168- command-queue.
4169- * {CL_INVALID_CONTEXT} if the context associated with _command_queue_,
4170- _src_image_ and _dst_buffer_ are not the same or if the context
4171- associated with _command_queue_ and events in _event_wait_list_ are not
4172- the same.
4173- * {CL_INVALID_MEM_OBJECT} if _src_image_ is not a valid image object or
4174- _dst_buffer_ is not a valid buffer object or if _src_image_ is a 1D
4175- image buffer object created from _dst_buffer_.
4176- * {CL_INVALID_VALUE} if _src_origin_ or _region_ is `NULL`.
4177- * {CL_INVALID_VALUE} if the 1D, 2D or 3D rectangular region specified by
4178- _src_origin_ and _src_origin_ + _region_ refers to a region outside
4179- _src_image_, or if the region specified by _dst_offset_ and _dst_offset_
4180- + _dst_cb_ to a region outside _dst_buffer_.
4181- * {CL_INVALID_VALUE} if values in _src_origin_ and _region_ do not follow
4182- rules described in the argument description for _src_origin_ and
4183- _region_.
4184- * {CL_INVALID_EVENT_WAIT_LIST} if _event_wait_list_ is `NULL` and
4185- _num_events_in_wait_list_ > 0, or _event_wait_list_ is not `NULL` and
4186- _num_events_in_wait_list_ is 0, or if event objects in _event_wait_list_
4187- are not valid events.
4188- * {CL_MISALIGNED_SUB_BUFFER_OFFSET} if _dst_buffer_ is a sub-buffer object
4189- and _offset_ specified when the sub-buffer object is created is not
4190- aligned to {CL_DEVICE_MEM_BASE_ADDR_ALIGN} value for device associated
4191- with _queue_.
4192- This error code is <<unified-spec, missing before>> version 1.1.
4193- * {CL_INVALID_IMAGE_SIZE} if image dimensions (image width, height,
4194- specified or compute row and/or slice pitch) for _src_image_ are not
4195- supported by device associated with _queue_.
4196- * {CL_IMAGE_FORMAT_NOT_SUPPORTED} if image format (image channel order and
4197- data type) for _src_image_ are not supported by device associated with
4198- _queue_.
4199- * {CL_MEM_OBJECT_ALLOCATION_FAILURE} if there is a failure to allocate
4200- memory for data store associated with _src_image_ or _dst_buffer_.
4201- * {CL_INVALID_OPERATION} if the device associated with _command_queue_ does
4202- not support images (i.e. {CL_DEVICE_IMAGE_SUPPORT} specified in the
4203- <<device-queries-table,Device Queries>> table is {CL_FALSE}).
4204- * {CL_OUT_OF_RESOURCES} if there is a failure to allocate resources required
4205- by the OpenCL implementation on the device.
4206- * {CL_OUT_OF_HOST_MEMORY} if there is a failure to allocate resources
4207- required by the OpenCL implementation on the host.
4169+ * {CL_INVALID_COMMAND_QUEUE}
4170+ ** if _command_queue_ is not a valid host command-queue
4171+ * {CL_INVALID_CONTEXT}
4172+ ** if the context associated with _command_queue_ and _src_image_ are not the same
4173+ ** if the context associated with _command_queue_ and _dst_buffer_ are not the same
4174+ ** if the context associated with _command_queue_ and events in _event_wait_list_ are not the same
4175+ * {CL_INVALID_MEM_OBJECT}
4176+ ** if _src_image_ is not a valid image object
4177+ ** if _dst_buffer_ is not a valid buffer object
4178+ ** if _src_image_ is a 1D image buffer object created from _dst_buffer_
4179+ * {CL_INVALID_VALUE}
4180+ ** if _src_origin_ is `NULL`
4181+ ** if _region_ is `NULL`
4182+ ** if the 1D, 2D or 3D rectangular region specified by _src_origin_ and _region_ is out of bounds of _src_image_
4183+ ** if the region specified by _dst_offset_ and the computed _dst_cb_ is out of bounds of _dst_buffer_
4184+ ** if values in _src_origin_ and _region_ do not follow the rules described in the argument description for _src_origin_ and _region_
42084185ifdef::cl_khr_mipmap_image[]
4209- * {CL_INVALID_MIP_LEVEL} if the {cl_khr_mipmap_image_EXT} extension is
4210- supported, and the mip level specified in _src_origin_ is not a valid
4211- level for _src_image_,
4186+ * {CL_INVALID_MIP_LEVEL}
4187+ ** if the {cl_khr_mipmap_image_EXT} extension is supported and the mip level specified in _src_origin_ is not a valid level for _src_image_
42124188endif::cl_khr_mipmap_image[]
4189+ * {CL_INVALID_EVENT_WAIT_LIST}
4190+ ** if _event_wait_list_ is `NULL` and _num_events_in_wait_list_ greater than zero
4191+ ** if _event_wait_list_ is not `NULL` and _num_events_in_wait_list_ is zero
4192+ ** if event objects in _event_wait_list_ are not valid events
4193+ * {CL_MISALIGNED_SUB_BUFFER_OFFSET}
4194+ ** if _dst_buffer_ is a sub-buffer object and the offset specified when the
4195+ sub-buffer object was created is not aligned to the
4196+ {CL_DEVICE_MEM_BASE_ADDR_ALIGN} value for the device associated
4197+ with _command_queue_.
4198+ This error code is <<unified-spec, missing before>> version 1.1.
4199+ * {CL_INVALID_IMAGE_SIZE}
4200+ ** if the dimensions for _src_image_, such as the image width or image height,
4201+ are not supported by the device associated with _command_queue_
4202+ * {CL_IMAGE_FORMAT_NOT_SUPPORTED}
4203+ ** if the format for _src_image_, such as the image channel order or image
4204+ channel data type, are not supported by the device associated with
4205+ _command_queue_
4206+ * {CL_MEM_OBJECT_ALLOCATION_FAILURE}
4207+ ** if there is a failure to allocate memory for data store associated with _src_image_
4208+ ** if there is a failure to allocate memory for data store associated with _dst_buffer_
4209+ * {CL_INVALID_OPERATION}
4210+ ** if the device associated with _command_queue_ does not support images (the query for {CL_DEVICE_IMAGE_SUPPORT} returns {CL_FALSE})
42134211ifdef::cl_ext_immutable_memory_objects[]
4214- * {CL_INVALID_OPERATION} if _dst_buffer_ was created with {CL_MEM_IMMUTABLE_EXT}.
4212+ ** if _dst_buffer_ was created with {CL_MEM_IMMUTABLE_EXT}
42154213endif::cl_ext_immutable_memory_objects[]
4214+ * {CL_OUT_OF_RESOURCES}
4215+ ** if there is a failure to allocate resources required by the OpenCL
4216+ implementation on the device
4217+ * {CL_OUT_OF_HOST_MEMORY}
4218+ ** if there is a failure to allocate resources required by the OpenCL
4219+ implementation on the host
42164220--
42174221
42184222
@@ -4299,55 +4303,57 @@ argument value specified when _src_buffer_ or _dst_image_ is created is ignored
42994303successfully.
43004304Otherwise, it returns one of the following errors:
43014305
4302- * {CL_INVALID_COMMAND_QUEUE} if _command_queue_ is not a valid host
4303- command-queue.
4304- * {CL_INVALID_CONTEXT} if the context associated with _command_queue_,
4305- _src_buffer_ and _dst_image_ are not the same or if the context
4306- associated with _command_queue_ and events in _event_wait_list_ are not
4307- the same.
4308- * {CL_INVALID_MEM_OBJECT} if _src_buffer_ is not a valid buffer object or
4309- _dst_image_ is not a valid image object or if _dst_image_ is a 1D image
4310- buffer object created from _src_buffer_.
4311- * {CL_INVALID_VALUE} if _dst_origin_ or _region_ is `NULL`.
4312- * {CL_INVALID_VALUE} if the 1D, 2D or 3D rectangular region specified by
4313- _dst_origin_ and _dst_origin_ + _region_ refer to a region outside
4314- _dst_image_, or if the region specified by _src_offset_ and _src_offset_
4315- + _src_cb_ refer to a region outside _src_buffer_.
4316- * {CL_INVALID_VALUE} if values in _dst_origin_ and _region_ do not follow
4317- rules described in the argument description for _dst_origin_ and
4318- _region_.
4319- * {CL_INVALID_EVENT_WAIT_LIST} if _event_wait_list_ is `NULL` and
4320- _num_events_in_wait_list_ > 0, or _event_wait_list_ is not `NULL` and
4321- _num_events_in_wait_list_ is 0, or if event objects in _event_wait_list_
4322- are not valid events.
4323- * {CL_MISALIGNED_SUB_BUFFER_OFFSET} if _src_buffer_ is a sub-buffer object
4324- and _offset_ specified when the sub-buffer object is created is not
4325- aligned to {CL_DEVICE_MEM_BASE_ADDR_ALIGN} value for device associated
4326- with _queue_.
4327- This error code is <<unified-spec, missing before>> version 1.1.
4328- * {CL_INVALID_IMAGE_SIZE} if image dimensions (image width, height,
4329- specified or compute row and/or slice pitch) for _dst_image_ are not
4330- supported by device associated with _queue_.
4331- * {CL_IMAGE_FORMAT_NOT_SUPPORTED} if image format (image channel order and
4332- data type) for _dst_image_ are not supported by device associated with
4333- _queue_.
4334- * {CL_MEM_OBJECT_ALLOCATION_FAILURE} if there is a failure to allocate
4335- memory for data store associated with _src_buffer_ or _dst_image_.
4336- * {CL_INVALID_OPERATION} if the device associated with _command_queue_ does
4337- not support images (i.e. {CL_DEVICE_IMAGE_SUPPORT} specified in the
4338- <<device-queries-table,Device Queries>> table is {CL_FALSE}).
4339- * {CL_OUT_OF_RESOURCES} if there is a failure to allocate resources required
4340- by the OpenCL implementation on the device.
4341- * {CL_OUT_OF_HOST_MEMORY} if there is a failure to allocate resources
4342- required by the OpenCL implementation on the host.
4306+ * {CL_INVALID_COMMAND_QUEUE}
4307+ ** if _command_queue_ is not a valid host command-queue
4308+ * {CL_INVALID_CONTEXT}
4309+ ** if the context associated with _command_queue_ and _src_buffer_ are not the same
4310+ ** if the context associated with _command_queue_ and _dst_image_ are not the same
4311+ ** if the context associated with _command_queue_ and events in _event_wait_list_ are not the same
4312+ * {CL_INVALID_MEM_OBJECT}
4313+ ** if _src_buffer_ is not a valid buffer object
4314+ ** if _dst_image_ is not a valid image object
4315+ ** if _dst_image_ is a 1D image buffer object created from _src_buffer_
4316+ * {CL_INVALID_VALUE}
4317+ ** if _dst_origin_ is `NULL`
4318+ ** if _region_ is `NULL`
4319+ ** if the region specified by _src_offset_ and the computed _src_cb_ is out of bounds of _src_buffer_
4320+ ** if the 1D, 2D or 3D rectangular region specified by _dst_origin_ and _region_ is out of bounds of _dst_image_
4321+ ** if values in _dst_origin_ and _region_ do not follow rules described in the argument description for _dst_origin_ and _region_
43434322ifdef::cl_khr_mipmap_image[]
4344- * {CL_INVALID_MIP_LEVEL} if the {cl_khr_mipmap_image_EXT} extension is
4345- supported, and the mip level specified in _dst_origin_ is not a valid
4346- level for _dst_image_,
4323+ * {CL_INVALID_MIP_LEVEL}
4324+ ** if the {cl_khr_mipmap_image_EXT} extension is supported and the mip level specified in _dst_origin_ is not a valid level for _dst_image_
43474325endif::cl_khr_mipmap_image[]
4326+ * {CL_INVALID_EVENT_WAIT_LIST}
4327+ ** if _event_wait_list_ is `NULL` and _num_events_in_wait_list_ greater than zero
4328+ ** if _event_wait_list_ is not `NULL` and _num_events_in_wait_list_ is zero
4329+ ** if event objects in _event_wait_list_ are not valid events
4330+ * {CL_MISALIGNED_SUB_BUFFER_OFFSET}
4331+ ** if _src_buffer_ is a sub-buffer object and the offset specified when the
4332+ sub-buffer object was created is not aligned to the
4333+ {CL_DEVICE_MEM_BASE_ADDR_ALIGN} value for the device associated
4334+ with _command_queue_.
4335+ This error code is <<unified-spec, missing before>> version 1.1.
4336+ * {CL_INVALID_IMAGE_SIZE}
4337+ ** if the dimensions for _dst_image_, such as the image width or image height,
4338+ are not supported by the device associated with _command_queue_
4339+ * {CL_IMAGE_FORMAT_NOT_SUPPORTED}
4340+ ** if the format for _dst_image_, such as the image channel order or image
4341+ channel data type, are not supported by the device associated with
4342+ _command_queue_
4343+ * {CL_MEM_OBJECT_ALLOCATION_FAILURE}
4344+ ** if there is a failure to allocate memory for data store associated with _src_buffer_
4345+ ** if there is a failure to allocate memory for data store associated with _dst_image_
4346+ * {CL_INVALID_OPERATION}
4347+ ** if the device associated with _command_queue_ does not support images (the query for {CL_DEVICE_IMAGE_SUPPORT} returns {CL_FALSE})
43484348ifdef::cl_ext_immutable_memory_objects[]
4349- * {CL_INVALID_OPERATION} if _dst_image_ was created with {CL_MEM_IMMUTABLE_EXT}.
4349+ ** if _dst_image_ was created with {CL_MEM_IMMUTABLE_EXT}
43504350endif::cl_ext_immutable_memory_objects[]
4351+ * {CL_OUT_OF_RESOURCES}
4352+ ** if there is a failure to allocate resources required by the OpenCL
4353+ implementation on the device
4354+ * {CL_OUT_OF_HOST_MEMORY}
4355+ ** if there is a failure to allocate resources required by the OpenCL
4356+ implementation on the host
43514357--
43524358
43534359
0 commit comments