fix: use proper pointer inside appendWriteGlobalTimestamp

Resolves: NEO-8105
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2023-09-27 00:10:51 +00:00
committed by Compute-Runtime-Automation
parent 96a7f63371
commit e71db368db
8 changed files with 106 additions and 33 deletions

View File

@@ -90,7 +90,7 @@ GraphicsAllocation *MockMemoryManager::allocateGraphicsMemoryWithProperties(cons
validateAllocateProperties(properties);
lastAllocationProperties.reset(new AllocationProperties(properties));
if (returnFakeAllocation) {
return new GraphicsAllocation(properties.rootDeviceIndex, properties.allocationType, reinterpret_cast<void *>(dummyAddress), reinterpret_cast<uint64_t>(ptr), properties.size, 0, MemoryPool::System4KBPages, maxOsContextCount);
return new GraphicsAllocation(properties.rootDeviceIndex, properties.allocationType, const_cast<void *>(ptr), dummyAddress, properties.size, 0, MemoryPool::System4KBPages, maxOsContextCount);
}
if (isMockHostMemoryManager) {
allocateGraphicsMemoryWithPropertiesCount++;