enable create subBuffer from pooled buffer

Allow creating subBuffer from buffer from buffer pool allocator
by redirecting the call to the pool buffer and adjusting offset

Related-To: NEO-7332

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2022-10-18 08:39:46 +00:00
committed by Compute-Runtime-Automation
parent f06df021b5
commit d1a6054af9
6 changed files with 106 additions and 8 deletions

View File

@@ -62,6 +62,7 @@ class Buffer : public MemObj {
constexpr static cl_ulong maskMagic = 0xFFFFFFFFFFFFFFFFLL;
constexpr static cl_ulong objectMagic = MemObj::objectMagic | 0x02;
bool forceDisallowCPUCopy = false;
bool isSubBufferFromPool = false;
~Buffer() override;