mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
test: Add test check for dc flush
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
48fbf4c1d3
commit
ff7ae28b1b
@@ -39,6 +39,10 @@ bool TestChecks::fullySupportsBlitter(const RootDeviceEnvironment &rootDeviceEnv
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TestChecks::allowsDcFlush(const Device *device) {
|
||||
return device->getProductHelper().isDcFlushAllowed();
|
||||
}
|
||||
|
||||
bool TestChecks::supportsImages(const HardwareInfo &hardwareInfo) {
|
||||
return hardwareInfo.capabilityTable.supportsImages;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ struct RootDeviceEnvironment;
|
||||
namespace TestChecks {
|
||||
bool supportsBlitter(const RootDeviceEnvironment &rootDeviceEnvironment);
|
||||
bool fullySupportsBlitter(const RootDeviceEnvironment &rootDeviceEnvironment);
|
||||
bool allowsDcFlush(const Device *device);
|
||||
bool supportsImages(const HardwareInfo &hardwareInfo);
|
||||
bool supportsImages(const std::unique_ptr<HardwareInfo> &pHardwareInfo);
|
||||
} // namespace TestChecks
|
||||
@@ -41,6 +42,11 @@ bool supportsImages(const std::unique_ptr<HardwareInfo> &pHardwareInfo);
|
||||
GTEST_SKIP(); \
|
||||
}
|
||||
|
||||
#define REQUIRE_DC_FLUSH_OR_SKIP(param) \
|
||||
if (NEO::TestChecks::allowsDcFlush(param) == false) { \
|
||||
GTEST_SKIP(); \
|
||||
}
|
||||
|
||||
#define REQUIRE_FULL_BLITTER_OR_SKIP(param) \
|
||||
if (NEO::TestChecks::fullySupportsBlitter(param) == false) { \
|
||||
GTEST_SKIP(); \
|
||||
|
||||
Reference in New Issue
Block a user