SWDEV-232894 Port hipMemcpy optimizations from HCC to VDI

Apply the optimization to change for OpenCL too.
Clean up some unnecessary checks.

Change-Id: I840261fe35baeeadeba7388e86779d482f509aad
This commit is contained in:
Alex Xie
2020-04-28 22:12:30 -04:00
committed by German Andryeyev
parent 1de8abd031
commit 6c5a42b33c
7 changed files with 21 additions and 41 deletions
+2
View File
@@ -168,6 +168,8 @@ class DmaBlitManager : public device::HostBlitManager {
protected:
const static uint MaxPinnedBuffers = 4;
constexpr static size_t kMaxH2dMemcpySize = 8 * Ki;
constexpr static size_t kMaxD2hMemcpySize = 64; //!< 1 cacheline
//! Synchronizes the blit operations if necessary
inline void synchronize() const;