mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Change-Id: Id7fa1c6b78e71a085084f8fcb66a7b8e873ad2bc Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com> Related-To: NEO-5120
35 lines
860 B
C++
35 lines
860 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "gtest/gtest.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace NEO {
|
|
class Device;
|
|
struct HardwareInfo;
|
|
|
|
namespace TestChecks {
|
|
bool supportsBlitter(const HardwareInfo *pHardwareInfo);
|
|
bool supportsSvm(const HardwareInfo *pHardwareInfo);
|
|
bool supportsSvm(const std::unique_ptr<HardwareInfo> &pHardwareInfo);
|
|
bool supportsSvm(const Device *pDevice);
|
|
} // namespace TestChecks
|
|
|
|
} // namespace NEO
|
|
|
|
#define REQUIRE_SVM_OR_SKIP(param) \
|
|
if (NEO::TestChecks::supportsSvm(param) == false) { \
|
|
GTEST_SKIP(); \
|
|
}
|
|
|
|
#define REQUIRE_BLITTER_OR_SKIP(param) \
|
|
if (NEO::TestChecks::supportsBlitter(param) == false) { \
|
|
GTEST_SKIP(); \
|
|
}
|