2019-08-05 15:16:57 +02:00
|
|
|
/*
|
2020-02-21 01:28:38 +01:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2019-08-05 15:16:57 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-26 14:21:01 +01:00
|
|
|
#include "opencl/extensions/public/cl_ext_private.h"
|
2020-02-22 22:50:57 +01:00
|
|
|
|
2019-08-05 15:16:57 +02:00
|
|
|
#include "memory_properties_flags.h"
|
|
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
2020-04-22 14:37:30 +02:00
|
|
|
class MemoryPropertiesParser {
|
2019-08-05 15:16:57 +02:00
|
|
|
public:
|
2020-04-22 14:37:30 +02:00
|
|
|
static void addExtraMemoryProperties(MemoryProperties &properties, cl_mem_flags flags, cl_mem_flags_intel flagsIntel);
|
2019-08-05 15:16:57 +02:00
|
|
|
|
2020-04-22 14:37:30 +02:00
|
|
|
static MemoryProperties createMemoryProperties(cl_mem_flags flags, cl_mem_flags_intel flagsIntel, cl_mem_alloc_flags_intel allocflags);
|
2019-08-05 15:16:57 +02:00
|
|
|
};
|
|
|
|
|
} // namespace NEO
|