refactor: remove not needed arguments in adjustGpuPtrToHostAddressSpace

- add also tests to confirm that proper alignment is applied

Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2023-07-17 12:57:15 +00:00
committed by Compute-Runtime-Automation
parent 8e07dd30cb
commit 33a5dd486b
5 changed files with 144 additions and 15 deletions

View File

@@ -115,7 +115,8 @@ class WddmMemoryManager : public MemoryManager {
bool mapMultiHandleAllocationWithRetry(WddmAllocation *allocation, const void *requiredGpuPtr);
bool createGpuAllocationsWithRetry(WddmAllocation *graphicsAllocation);
template <bool Is32Bit = is32bit>
void adjustGpuPtrToHostAddressSpace(const AllocationData &allocationData, WddmAllocation &wddmAllocation, size_t sizeAligned, void *&requiredGpuVa);
void adjustGpuPtrToHostAddressSpace(WddmAllocation &wddmAllocation, void *&requiredGpuVa);
bool isStatelessAccessRequired(AllocationType type);
AlignedMallocRestrictions mallocRestrictions;
Wddm &getWddm(uint32_t rootDeviceIndex) const;