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 "opencl/test/unit_test/test_macros/test_checks_ocl.h"
|
2020-03-24 19:17:13 +08:00
|
|
|
|
2020-04-21 19:45:26 +08:00
|
|
|
#include "shared/source/device/device_info.h"
|
|
|
|
|
2020-03-24 19:17:13 +08:00
|
|
|
#include "opencl/source/cl_device/cl_device.h"
|
2020-04-21 19:45:26 +08:00
|
|
|
#include "opencl/source/context/context.h"
|
2020-03-24 19:17:13 +08:00
|
|
|
|
|
|
|
using namespace NEO;
|
|
|
|
|
|
|
|
bool TestChecks::supportsSvm(const ClDevice *pClDevice) {
|
|
|
|
return supportsSvm(&pClDevice->getDevice());
|
|
|
|
}
|
2020-04-21 19:45:26 +08:00
|
|
|
|
|
|
|
bool TestChecks::supportsImages(const Context *pContext) {
|
|
|
|
return pContext->getDevice(0)->getSharedDeviceInfo().imageSupport;
|
|
|
|
}
|