Files
compute-runtime/opencl/source/memory_manager/resource_surface.h
Bartosz Dunajski 96d14967ac Partial support for XE_HP_SDV
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-06-24 18:35:54 +02:00

26 lines
702 B
C++

/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/memory_manager/surface.h"
#include "opencl/extensions/public/cl_ext_private.h"
namespace NEO {
class ResourceSurface : public GeneralSurface {
public:
ResourceSurface(GraphicsAllocation *gfxAlloc, cl_resource_barrier_type type, cl_resource_memory_scope scope) : GeneralSurface(gfxAlloc), resourceType(type), resourceScope(scope) {}
~ResourceSurface() override = default;
GraphicsAllocation *getGraphicsAllocation() {
return gfxAllocation;
}
cl_resource_barrier_type resourceType;
cl_resource_memory_scope resourceScope;
};
} // namespace NEO