mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
Change-Id: Ifb30be582c0884d151b57c57a5b5fa77d2c64b57 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
23 lines
574 B
C++
23 lines
574 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/test/unit_test/test_macros/test_checks_shared.h"
|
|
|
|
#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());
|
|
}
|