mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Revert "fix: disable support for deprecated patchtokens format"
This reverts commit 506d5837df.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9cccbcabe1
commit
79cdf69efe
@@ -289,7 +289,7 @@ TEST(DecodeSingleDeviceBinary, GivenUnknownFormatThenReturnFalse) {
|
||||
EXPECT_STREQ("Unknown format", decodeErrors.c_str());
|
||||
}
|
||||
|
||||
TEST(DecodeSingleDeviceBinary, GivenPatchTokensFormatThenDecodingFails) {
|
||||
TEST(DecodeSingleDeviceBinary, GivenPatchTokensFormatThenDecodingSucceeds) {
|
||||
NEO::MockExecutionEnvironment mockExecutionEnvironment{};
|
||||
auto &gfxCoreHelper = mockExecutionEnvironment.rootDeviceEnvironments[0]->getHelper<NEO::GfxCoreHelper>();
|
||||
PatchTokensTestData::ValidEmptyProgram patchtokensProgram;
|
||||
@@ -302,10 +302,10 @@ TEST(DecodeSingleDeviceBinary, GivenPatchTokensFormatThenDecodingFails) {
|
||||
NEO::DecodeError status;
|
||||
NEO::DeviceBinaryFormat format;
|
||||
std::tie(status, format) = NEO::decodeSingleDeviceBinary(programInfo, bin, decodeErrors, decodeWarnings, gfxCoreHelper);
|
||||
EXPECT_EQ(NEO::DecodeError::invalidBinary, status);
|
||||
EXPECT_EQ(NEO::DecodeError::success, status);
|
||||
EXPECT_EQ(NEO::DeviceBinaryFormat::patchtokens, format);
|
||||
EXPECT_TRUE(decodeWarnings.empty());
|
||||
EXPECT_STREQ("Deprecated format - patchtokens", decodeErrors.c_str());
|
||||
EXPECT_TRUE(decodeErrors.empty());
|
||||
}
|
||||
|
||||
TEST(DecodeSingleDeviceBinary, GivenZebinFormatThenDecodingSucceeds) {
|
||||
|
||||
Reference in New Issue
Block a user