2018-09-05 10:10:26 +02:00
|
|
|
/*
|
2021-05-21 13:32:24 +00:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2018-09-05 10:10:26 +02:00
|
|
|
*
|
2018-09-17 14:03:37 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-09-05 10:10:26 +02:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2021-05-21 13:32:24 +00:00
|
|
|
#include "opencl/source/context/context.h"
|
2020-02-22 22:50:57 +01:00
|
|
|
#include "opencl/source/mem_obj/mem_obj_helper_common.inl"
|
|
|
|
|
|
2019-08-09 12:20:05 +02:00
|
|
|
#include "memory_properties_flags.h"
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-09-05 10:10:26 +02:00
|
|
|
|
2020-04-22 14:37:30 +02:00
|
|
|
bool MemObjHelper::isSuitableForRenderCompression(bool renderCompressed, const MemoryProperties &properties, Context &context, bool preferCompression) {
|
2021-05-21 13:32:24 +00:00
|
|
|
if (context.getRootDeviceIndices().size() > 1u) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2019-09-18 19:32:33 +02:00
|
|
|
return renderCompressed && preferCompression;
|
2019-01-28 15:27:15 +01:00
|
|
|
}
|
|
|
|
|
|
2020-04-22 14:37:30 +02:00
|
|
|
bool MemObjHelper::validateExtraMemoryProperties(const MemoryProperties &memoryProperties, cl_mem_flags flags, cl_mem_flags_intel flagsIntel, const Context &context) {
|
2019-01-09 12:56:38 +01:00
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-29 08:59:15 +02:00
|
|
|
const uint64_t MemObjHelper::extraFlags = 0;
|
|
|
|
|
|
|
|
|
|
const uint64_t MemObjHelper::extraFlagsIntel = 0;
|
2019-01-09 12:56:38 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|