2022-12-05 22:57:08 +08:00
|
|
|
/*
|
2023-12-21 23:44:11 +08:00
|
|
|
* Copyright (C) 2022-2024 Intel Corporation
|
2022-12-05 22:57:08 +08:00
|
|
|
*
|
|
|
|
* 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 {
|
2023-12-21 23:44:11 +08:00
|
|
|
return (flagsIntel & CL_MEM_COMPRESSED_HINT_INTEL) == false &&
|
|
|
|
(flags & CL_MEM_COMPRESSED_HINT_INTEL) == false;
|
2022-12-05 22:57:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace NEO
|