[Offload] Make olMemcpy src parameter const (#143161)
This commit is contained in:
@@ -57,7 +57,7 @@ def : Function {
|
||||
Param<"ol_queue_handle_t", "Queue", "handle of the queue.", PARAM_IN_OPTIONAL>,
|
||||
Param<"void*", "DstPtr", "pointer to copy to", PARAM_IN>,
|
||||
Param<"ol_device_handle_t", "DstDevice", "device that DstPtr belongs to", PARAM_IN>,
|
||||
Param<"void*", "SrcPtr", "pointer to copy from", PARAM_IN>,
|
||||
Param<"const void*", "SrcPtr", "pointer to copy from", PARAM_IN>,
|
||||
Param<"ol_device_handle_t", "SrcDevice", "device that SrcPtr belongs to", PARAM_IN>,
|
||||
Param<"size_t", "Size", "size in bytes of data to copy", PARAM_IN>,
|
||||
Param<"ol_event_handle_t*", "EventOut", "optional recorded event for the enqueued operation", PARAM_OUT_OPTIONAL>
|
||||
|
||||
@@ -399,7 +399,7 @@ ol_event_handle_t makeEvent(ol_queue_handle_t Queue) {
|
||||
}
|
||||
|
||||
Error olMemcpy_impl(ol_queue_handle_t Queue, void *DstPtr,
|
||||
ol_device_handle_t DstDevice, void *SrcPtr,
|
||||
ol_device_handle_t DstDevice, const void *SrcPtr,
|
||||
ol_device_handle_t SrcDevice, size_t Size,
|
||||
ol_event_handle_t *EventOut) {
|
||||
if (DstDevice == HostDevice() && SrcDevice == HostDevice()) {
|
||||
|
||||
Reference in New Issue
Block a user