mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 04:12:57 +08:00
increase pool size to 2MB and threshold to 1MB add limit to the number of pools, set to 2 Related-To: NEO-9690 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
16 lines
432 B
C++
16 lines
432 B
C++
/*
|
|
* Copyright (C) 2022-2024 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "opencl/source/context/context.h"
|
|
|
|
namespace NEO {
|
|
bool Context::BufferPoolAllocator::flagsAllowBufferFromPool(const cl_mem_flags &flags, const cl_mem_flags_intel &flagsIntel) const {
|
|
return (flagsIntel & CL_MEM_COMPRESSED_HINT_INTEL) == false &&
|
|
(flags & CL_MEM_COMPRESSED_HINT_INTEL) == false;
|
|
}
|
|
|
|
} // namespace NEO
|