Files
compute-runtime/shared/test/common/mocks/windows/mock_gmm_memory.cpp
Mateusz Jablonski 5b8e8b8b1a refactor: unify GmmMemory definition
Related-To: NEO-11080
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-10-01 14:23:35 +02:00

36 lines
1.3 KiB
C++

/*
* Copyright (C) 2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/mocks/windows/mock_gmm_memory.h"
namespace NEO {
bool MockGmmMemory::configureDeviceAddressSpace(GMM_ESCAPE_HANDLE hAdapter,
GMM_ESCAPE_HANDLE hDevice,
GMM_ESCAPE_FUNC_TYPE pfnEscape,
GMM_GFX_SIZE_T svmSize,
BOOLEAN bdwL3Coherency) {
configureDeviceAddressSpaceCalled++;
configureDeviceAddressSpaceParamsPassed.push_back({hAdapter,
hDevice,
pfnEscape,
svmSize,
bdwL3Coherency});
return configureDeviceAddressSpaceResult;
}
void MockGmmMemory::overrideInternalGpuVaRangeLimit(uintptr_t value) {
this->getInternalGpuVaRangeLimitResult = value;
}
bool MockGmmMemory::setDeviceInfo(GMM_DEVICE_INFO *deviceInfo) {
setDeviceInfoCalled++;
deviceCallbacks = *deviceInfo->pDeviceCb;
return setDeviceInfoResult;
}
} // namespace NEO