Add comments to GetPcieBlit.

Comments call out the specific operation being selected since the
ternary nest is a bit hard to read.

Change-Id: If033dbaa6cba132e96196ad3fc6d5572042041f4
Este commit está contenido en:
Sean Keely
2021-11-15 19:30:27 -06:00
padre b198016949
commit fc75731034
@@ -1516,10 +1516,11 @@ lazy_ptr<core::Blit>& GpuAgent::GetPcieBlit(const core::Agent& dst_agent,
lazy_ptr<core::Blit>& blit =
(src_agent.device_type() == core::Agent::kAmdCpuDevice &&
dst_agent.device_type() == core::Agent::kAmdGpuDevice)
? blits_[BlitHostToDev]
? blits_[BlitHostToDev] // CPU->GPU transfer.
: (src_agent.device_type() == core::Agent::kAmdGpuDevice &&
dst_agent.device_type() == core::Agent::kAmdCpuDevice)
? blits_[BlitDevToHost] : blits_[BlitDevToHost];
? blits_[BlitDevToHost] // GPU->CPU transfer.
: blits_[BlitDevToHost]; // GPU->GPU transfer.
return blit;
}