Partial support for XE_HP_SDV

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-04-23 16:43:48 +00:00
committed by Compute-Runtime-Automation
parent e0a50d3143
commit 96d14967ac
151 changed files with 15140 additions and 41 deletions

View File

@@ -0,0 +1,26 @@
/*
* 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