| 1 |
/* |
| 2 |
* Copyright (C) 2021-2022 Intel Corporation |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: MIT |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#include "shared/source/gmm_helper/client_context/gmm_client_context.h" |
| 9 |
#include "shared/source/gmm_helper/windows/gmm_memory_base.h" |
| 10 |
#include "shared/source/os_interface/windows/windows_defs.h" |
| 11 |
|
| 12 |
namespace NEO { |
| 13 |
|
| 14 |
bool GmmMemoryBase::configureDeviceAddressSpace(GMM_ESCAPE_HANDLE hAdapter, |
| 15 |
GMM_ESCAPE_HANDLE hDevice, |
| 16 |
GMM_ESCAPE_FUNC_TYPE pfnEscape, |
| 17 |
GMM_GFX_SIZE_T svmSize, |
| 18 |
BOOLEAN bdwL3Coherency) { |
| 19 |
return clientContext.ConfigureDeviceAddressSpace( |
| 20 |
{hAdapter}, |
| 21 |
{hDevice}, |
| 22 |
{pfnEscape}, |
| 23 |
svmSize, |
| 24 |
0, |
| 25 |
0, |
| 26 |
bdwL3Coherency, |
| 27 |
0, |
| 28 |
0) != 0; |
| 29 |
} |
| 30 |
|
| 31 |
}; // namespace NEO |