mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-22 19:29:06 +08:00
fix: use proper pointer inside appendWriteGlobalTimestamp
Resolves: NEO-8105 Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
96a7f63371
commit
e71db368db
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user