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

supportsPipes set to false will disable support of Pipes on a device. Related-To: NEO-4368 Change-Id: I2b03984d7618e85f482f8f8fa0fe3ef45ece7c19 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
namespace NEO {
|
|
class ClDevice;
|
|
class Context;
|
|
struct HardwareInfo;
|
|
|
|
namespace TestChecks {
|
|
bool supportsSvm(const ClDevice *pClDevice);
|
|
bool supportsImages(const Context *pContext);
|
|
bool supportsOcl21(const Context *pContext);
|
|
bool supportsDeviceEnqueue(const ClDevice *pClDevice);
|
|
bool supportsDeviceEnqueue(const Context *pContext);
|
|
bool supportsDeviceEnqueue(const std::unique_ptr<HardwareInfo> &pHardwareInfo);
|
|
bool supportsPipes(const ClDevice *pClDevice);
|
|
} // namespace TestChecks
|
|
|
|
} // namespace NEO
|
|
|
|
#include "shared/test/unit_test/test_macros/test_checks_shared.h"
|
|
|
|
#define REQUIRE_IMAGES_OR_SKIP(param) \
|
|
if (NEO::TestChecks::supportsImages(param) == false) { \
|
|
GTEST_SKIP(); \
|
|
}
|
|
|
|
#define REQUIRE_OCL_21_OR_SKIP(param) \
|
|
if (NEO::TestChecks::supportsOcl21(param) == false) { \
|
|
GTEST_SKIP(); \
|
|
}
|
|
|
|
#define REQUIRE_DEVICE_ENQUEUE_OR_SKIP(param) \
|
|
if (NEO::TestChecks::supportsDeviceEnqueue(param) == false) { \
|
|
GTEST_SKIP(); \
|
|
}
|