mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
refactor: reduce the number of DrmAllocation constructors
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4f52fd504a
commit
ca70bb99b2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
* Copyright (C) 2022-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -40,6 +40,7 @@ class IpcImplicitScalingObtainFdMockGraphicsAllocation : public NEO::DrmAllocati
|
||||
NEO::osHandle sharedHandle,
|
||||
MemoryPool pool,
|
||||
uint64_t canonizedGpuAddress) : NEO::DrmAllocation(rootDeviceIndex,
|
||||
1u /*num gmms*/,
|
||||
allocationType,
|
||||
bo,
|
||||
ptrIn,
|
||||
@@ -456,6 +457,7 @@ class IpcObtainFdMockGraphicsAllocation : public NEO::DrmAllocation {
|
||||
NEO::osHandle sharedHandle,
|
||||
MemoryPool pool,
|
||||
uint64_t canonizedGpuAddress) : NEO::DrmAllocation(rootDeviceIndex,
|
||||
1u /*num gmms*/,
|
||||
allocationType,
|
||||
bo,
|
||||
ptrIn,
|
||||
|
||||
Reference in New Issue
Block a user