Use user requested engine ID when forcing SDMA copies

When forcing SDMA copies, engine ID specified by the requester should
still be used since the requester has hint of engine availability.

Change-Id: Idefa9494e407e31da510aa4c7c1fa283c85a4f6e
This commit is contained in:
Jonathan Kim committed 2023-10-18 10:45:02 -04:00
1 والد 22be526230
کامیت a36856b02a
1 file changed
+1 -2
@@ -1043,8 +1043,7 @@ hsa_status_t GpuAgent::DmaCopyOnEngine(void* dst, core::Agent& dst_agent,
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
}
engine_offset = is_same_gpu ?(force_copy_on_sdma ? BlitDevToHost :
BlitDevToDev) : engine_offset;
engine_offset = is_same_gpu && !force_copy_on_sdma ? BlitDevToDev : engine_offset;
}
SetCopyRequestRefCount(true);