2020-03-24 19:17:13 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
class ClDevice;
|
2020-04-21 19:45:26 +08:00
|
|
|
class Context;
|
2020-03-24 19:17:13 +08:00
|
|
|
|
|
|
|
namespace TestChecks {
|
|
|
|
bool supportsSvm(const ClDevice *pClDevice);
|
2020-04-21 19:45:26 +08:00
|
|
|
bool supportsImages(const Context *pContext);
|
2020-03-24 19:17:13 +08:00
|
|
|
} // namespace TestChecks
|
|
|
|
|
|
|
|
} // namespace NEO
|
|
|
|
|
|
|
|
#include "shared/test/unit_test/test_macros/test_checks.h"
|
2020-04-21 19:45:26 +08:00
|
|
|
|
|
|
|
#define REQUIRE_IMAGES_OR_SKIP(param) \
|
|
|
|
if (NEO::TestChecks::supportsImages(param) == false) { \
|
|
|
|
GTEST_SKIP(); \
|
|
|
|
}
|