mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-13 10:14:36 +08:00
36 lines
1.3 KiB
C++
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
|