mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Cleaned up files: opencl/source/helpers/cl_memory_properties_helpers.h shared/source/memory_manager/surface.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
32 lines
863 B
C++
32 lines
863 B
C++
/*
|
|
* Copyright (C) 2021-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "opencl/extensions/public/cl_ext_private.h"
|
|
|
|
namespace NEO {
|
|
|
|
class Context;
|
|
class Device;
|
|
struct MemoryProperties;
|
|
|
|
class ClMemoryPropertiesHelper {
|
|
public:
|
|
enum class ObjType {
|
|
UNKNOWN,
|
|
BUFFER,
|
|
IMAGE,
|
|
};
|
|
|
|
static MemoryProperties createMemoryProperties(cl_mem_flags flags, cl_mem_flags_intel flagsIntel, cl_mem_alloc_flags_intel allocflags, const Device *pDevice);
|
|
|
|
static bool parseMemoryProperties(const cl_mem_properties_intel *properties, MemoryProperties &memoryProperties,
|
|
cl_mem_flags &flags, cl_mem_flags_intel &flagsIntel, cl_mem_alloc_flags_intel &allocflags,
|
|
ObjType objectType, Context &context);
|
|
};
|
|
} // namespace NEO
|