mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
This reverts commit 5b80bd4d7c.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
59 lines
1.8 KiB
C++
59 lines
1.8 KiB
C++
/*
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/helpers/constants.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace NEO {
|
|
class Device;
|
|
struct HardwareInfo;
|
|
struct RootDeviceEnvironment;
|
|
|
|
namespace TestChecks {
|
|
bool supportsBlitter(const RootDeviceEnvironment &rootDeviceEnvironment);
|
|
bool fullySupportsBlitter(const RootDeviceEnvironment &rootDeviceEnvironment);
|
|
bool supportsImages(const HardwareInfo &hardwareInfo);
|
|
bool supportsImages(const std::unique_ptr<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_32BIT_OR_SKIP() \
|
|
if constexpr (::is64bit == true) { \
|
|
GTEST_SKIP(); \
|
|
}
|
|
|
|
#define REQUIRE_64BIT_OR_SKIP() \
|
|
if constexpr (::is64bit == false) { \
|
|
GTEST_SKIP(); \
|
|
}
|
|
|
|
#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(); \
|
|
}
|
|
|
|
#define REQUIRE_FULL_BLITTER_OR_SKIP(param) \
|
|
if (NEO::TestChecks::fullySupportsBlitter(param) == false) { \
|
|
GTEST_SKIP(); \
|
|
}
|
|
|
|
#define REQUIRE_IMAGES_OR_SKIP(param) \
|
|
if (NEO::TestChecks::supportsImages(param) == false) { \
|
|
GTEST_SKIP(); \
|
|
}
|