mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
fix: add missing registerIpcExportedAllocation
Unify `getIpcMemHandle()` and `getIpcMemHandles()` and fix the issue of missing IPC handles registration while reducing copy-pasted code. Also replace `boHandle` with `boHandleWrapper` to leverage `refCount` properly and avoid double-free. Related-To: NEO-8904 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
138fb65401
commit
cb448c6c35
@@ -2462,7 +2462,7 @@ TEST_F(DrmMemoryManagerTestPrelim, whenCreatingAllocationFromMultipleSharedHandl
|
||||
TEST_F(DrmMemoryManagerTestPrelim, whenCreatingAllocationFromMultipleSharedHandlesWithNoSharingResourcesThenDifferentAllocationsAreReturned) {
|
||||
mock->ioctlExpected.primeFdToHandle = 4;
|
||||
mock->ioctlExpected.gemWait = 2;
|
||||
mock->ioctlExpected.gemClose = 4;
|
||||
mock->ioctlExpected.gemClose = 2;
|
||||
|
||||
std::vector<NEO::osHandle> handles{6, 7};
|
||||
size_t size = 65536u * 2;
|
||||
|
||||
Reference in New Issue
Block a user