SWDEV-440746 - Remove obsolete code
The "optimized" version of memcpy is outdated and
was used in win32 only.
Change-Id: I7f2e0e9051e37cec95438266824b5b0025c324c6
[ROCm/clr commit: 7448113cfc]
This commit is contained in:
@@ -41,7 +41,7 @@ bool HostBlitManager::readBuffer(device::Memory& srcMemory, void* dstHost,
|
||||
}
|
||||
|
||||
// Copy memory
|
||||
amd::Os::fastMemcpy(dstHost, reinterpret_cast<const_address>(src) + origin[0], size[0]);
|
||||
std::memcpy(dstHost, reinterpret_cast<const_address>(src) + origin[0], size[0]);
|
||||
|
||||
// Unmap device memory
|
||||
srcMemory.cpuUnmap(vDev_);
|
||||
@@ -69,8 +69,8 @@ bool HostBlitManager::readBufferRect(device::Memory& srcMemory, void* dstHost,
|
||||
dstOffset = hostRect.offset(0, y, z);
|
||||
|
||||
// Copy memory line by line
|
||||
amd::Os::fastMemcpy((reinterpret_cast<address>(dstHost) + dstOffset),
|
||||
(reinterpret_cast<const_address>(src) + srcOffset), size[0]);
|
||||
std::memcpy((reinterpret_cast<address>(dstHost) + dstOffset),
|
||||
(reinterpret_cast<const_address>(src) + srcOffset), size[0]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -133,8 +133,8 @@ bool HostBlitManager::readImage(device::Memory& srcMemory, void* dstHost,
|
||||
// Copy memory line by line
|
||||
for (size_t row = 0; row < size[1]; ++row) {
|
||||
// Copy memory
|
||||
amd::Os::fastMemcpy((reinterpret_cast<address>(dstHost) + dstOffs),
|
||||
(reinterpret_cast<const_address>(src) + srcOffs), copySize);
|
||||
std::memcpy((reinterpret_cast<address>(dstHost) + dstOffs),
|
||||
(reinterpret_cast<const_address>(src) + srcOffs), copySize);
|
||||
|
||||
srcOffs += srcRowPitch;
|
||||
dstOffs += rowPitch;
|
||||
@@ -163,7 +163,7 @@ bool HostBlitManager::writeBuffer(const void* srcHost, device::Memory& dstMemory
|
||||
}
|
||||
|
||||
// Copy memory
|
||||
amd::Os::fastMemcpy(reinterpret_cast<address>(dst) + origin[0], srcHost, size[0]);
|
||||
std::memcpy(reinterpret_cast<address>(dst) + origin[0], srcHost, size[0]);
|
||||
|
||||
// Unmap the device memory
|
||||
dstMemory.cpuUnmap(vDev_);
|
||||
@@ -191,8 +191,8 @@ bool HostBlitManager::writeBufferRect(const void* srcHost, device::Memory& dstMe
|
||||
dstOffset = bufRect.offset(0, y, z);
|
||||
|
||||
// Copy memory line by line
|
||||
amd::Os::fastMemcpy((reinterpret_cast<address>(dst) + dstOffset),
|
||||
(reinterpret_cast<const_address>(srcHost) + srcOffset), size[0]);
|
||||
std::memcpy((reinterpret_cast<address>(dst) + dstOffset),
|
||||
(reinterpret_cast<const_address>(srcHost) + srcOffset), size[0]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -258,8 +258,8 @@ bool HostBlitManager::writeImage(const void* srcHost, device::Memory& dstMemory,
|
||||
// Copy memory line by line
|
||||
for (size_t row = 0; row < size[1]; ++row) {
|
||||
// Copy memory
|
||||
amd::Os::fastMemcpy((reinterpret_cast<address>(dst) + dstOffs),
|
||||
(reinterpret_cast<const_address>(srcHost) + srcOffs), copySize);
|
||||
std::memcpy((reinterpret_cast<address>(dst) + dstOffs),
|
||||
(reinterpret_cast<const_address>(srcHost) + srcOffs), copySize);
|
||||
|
||||
dstOffs += dstRowPitch;
|
||||
srcOffs += rowPitch;
|
||||
@@ -293,8 +293,8 @@ bool HostBlitManager::copyBuffer(device::Memory& srcMemory, device::Memory& dstM
|
||||
}
|
||||
|
||||
// Straight forward buffer copy
|
||||
amd::Os::fastMemcpy((reinterpret_cast<address>(dst) + dstOrigin[0]),
|
||||
(reinterpret_cast<const_address>(src) + srcOrigin[0]), size[0]);
|
||||
std::memcpy((reinterpret_cast<address>(dst) + dstOrigin[0]),
|
||||
(reinterpret_cast<const_address>(src) + srcOrigin[0]), size[0]);
|
||||
|
||||
// Unmap source and destination memory
|
||||
dstMemory.cpuUnmap(vDev_);
|
||||
@@ -329,8 +329,8 @@ bool HostBlitManager::copyBufferRect(device::Memory& srcMemory, device::Memory&
|
||||
size_t dstOffset = dstRect.offset(0, y, z);
|
||||
|
||||
// Copy memory line by line
|
||||
amd::Os::fastMemcpy((reinterpret_cast<address>(dst) + dstOffset),
|
||||
(reinterpret_cast<const_address>(src) + srcOffset), size[0]);
|
||||
std::memcpy((reinterpret_cast<address>(dst) + dstOffset),
|
||||
(reinterpret_cast<const_address>(src) + srcOffset), size[0]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -392,8 +392,8 @@ bool HostBlitManager::copyImageToBuffer(device::Memory& srcMemory, device::Memor
|
||||
|
||||
// Copy memory line by line
|
||||
for (size_t rows = 0; rows < size[1]; ++rows) {
|
||||
amd::Os::fastMemcpy((reinterpret_cast<address>(dst) + dstOffs),
|
||||
(reinterpret_cast<const_address>(src) + srcOffs), copySize);
|
||||
std::memcpy((reinterpret_cast<address>(dst) + dstOffs),
|
||||
(reinterpret_cast<const_address>(src) + srcOffs), copySize);
|
||||
|
||||
srcOffs += srcRowPitch;
|
||||
dstOffs += copySize;
|
||||
@@ -458,8 +458,8 @@ bool HostBlitManager::copyBufferToImage(device::Memory& srcMemory, device::Memor
|
||||
|
||||
// Copy memory line by line
|
||||
for (size_t rows = 0; rows < size[1]; ++rows) {
|
||||
amd::Os::fastMemcpy((reinterpret_cast<address>(dst) + dstOffs),
|
||||
(reinterpret_cast<const_address>(src) + srcOffs), copySize);
|
||||
std::memcpy((reinterpret_cast<address>(dst) + dstOffs),
|
||||
(reinterpret_cast<const_address>(src) + srcOffs), copySize);
|
||||
|
||||
srcOffs += copySize;
|
||||
dstOffs += dstRowPitch;
|
||||
@@ -544,8 +544,8 @@ bool HostBlitManager::copyImage(device::Memory& srcMemory, device::Memory& dstMe
|
||||
|
||||
// Copy memory line by line
|
||||
for (size_t rows = 0; rows < size[1]; ++rows) {
|
||||
amd::Os::fastMemcpy((reinterpret_cast<address>(dst) + dstOffs),
|
||||
(reinterpret_cast<const_address>(src) + srcOffs), copySize);
|
||||
std::memcpy((reinterpret_cast<address>(dst) + dstOffs),
|
||||
(reinterpret_cast<const_address>(src) + srcOffs), copySize);
|
||||
|
||||
srcOffs += srcRowPitch;
|
||||
dstOffs += dstRowPitch;
|
||||
|
||||
Reference in New Issue
Block a user