mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Partial support for XE_HP_SDV
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e0a50d3143
commit
96d14967ac
26
opencl/source/memory_manager/resource_surface.h
Normal file
26
opencl/source/memory_manager/resource_surface.h
Normal 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
|
||||
Reference in New Issue
Block a user