mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Refactor GraphicsAllocation class
move most of members to protected section merge related members into structs Change-Id: Ief2e092aa5e61ca6f13308f9d9b1937ea6c913b4 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
e75e5808cc
commit
6fb28dd828
@@ -19,23 +19,25 @@ void GraphicsAllocation::setAllocationType(AllocationType allocationType) {
|
||||
|
||||
GraphicsAllocation::GraphicsAllocation(AllocationType allocationType, void *cpuPtrIn, uint64_t gpuAddress, uint64_t baseAddress,
|
||||
size_t sizeIn, MemoryPool::Type pool, bool multiOsContextCapable)
|
||||
: gpuBaseAddress(baseAddress),
|
||||
size(sizeIn),
|
||||
: size(sizeIn),
|
||||
cpuPtr(cpuPtrIn),
|
||||
gpuBaseAddress(baseAddress),
|
||||
gpuAddress(gpuAddress),
|
||||
memoryPool(pool),
|
||||
allocationType(allocationType),
|
||||
multiOsContextCapable(multiOsContextCapable) {}
|
||||
allocationType(allocationType) {
|
||||
allocationInfo.flags.multiOsContextCapable = multiOsContextCapable;
|
||||
}
|
||||
|
||||
GraphicsAllocation::GraphicsAllocation(AllocationType allocationType, void *cpuPtrIn, size_t sizeIn, osHandle sharedHandleIn,
|
||||
MemoryPool::Type pool, bool multiOsContextCapable)
|
||||
: size(sizeIn),
|
||||
cpuPtr(cpuPtrIn),
|
||||
gpuAddress(castToUint64(cpuPtrIn)),
|
||||
sharedHandle(sharedHandleIn),
|
||||
memoryPool(pool),
|
||||
allocationType(allocationType),
|
||||
multiOsContextCapable(multiOsContextCapable) {}
|
||||
allocationType(allocationType) {
|
||||
sharingInfo.sharedHandle = sharedHandleIn;
|
||||
allocationInfo.flags.multiOsContextCapable = multiOsContextCapable;
|
||||
}
|
||||
|
||||
GraphicsAllocation::~GraphicsAllocation() = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user