mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 08:07:19 +08:00
Prepare for pool buffer enabling 1/n
check if flags allow buffer from pool add buffer offset to aubtests disable pool buffer where required Related-To: NEO-7332 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2ceada6bef
commit
70dbce12d1
@@ -71,6 +71,8 @@ class Context : public BaseObject<_cl_context> {
|
||||
|
||||
bool isPoolBuffer(const MemObj *buffer) const;
|
||||
|
||||
bool flagsAllowBufferFromPool(const cl_mem_flags &flags, const cl_mem_flags_intel &flagsIntel) const;
|
||||
|
||||
protected:
|
||||
inline bool isSizeWithinThreshold(size_t size) const {
|
||||
return BufferPoolAllocator::smallBufferThreshold >= size;
|
||||
|
||||
Reference in New Issue
Block a user