2020-03-24 19:17:13 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-04-23 01:26:27 +08:00
|
|
|
#include "shared/test/unit_test/test_macros/test_checks_shared.h"
|
2020-03-24 19:17:13 +08:00
|
|
|
|
|
|
|
#include "shared/source/device/device.h"
|
|
|
|
|
|
|
|
using namespace NEO;
|
|
|
|
|
|
|
|
bool TestChecks::supportsSvm(const HardwareInfo *pHardwareInfo) {
|
|
|
|
return pHardwareInfo->capabilityTable.ftrSvm;
|
|
|
|
}
|
|
|
|
bool TestChecks::supportsSvm(const std::unique_ptr<HardwareInfo> &pHardwareInfo) {
|
|
|
|
return supportsSvm(pHardwareInfo.get());
|
|
|
|
}
|
|
|
|
bool TestChecks::supportsSvm(const Device *pDevice) {
|
|
|
|
return supportsSvm(&pDevice->getHardwareInfo());
|
|
|
|
}
|