mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: forbid compression for pre-xe2 platforms
Related-To: NEO-9465 Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
785d69dd8c
commit
df07897144
@@ -1159,3 +1159,13 @@ HWTEST_F(ProductHelperTest, givenProductHelperWhenCheckingIsCompressionForbidden
|
||||
debugManager.flags.RenderCompressedImagesEnabled.set(1);
|
||||
EXPECT_FALSE(productHelper->isCompressionForbidden(hwInfo));
|
||||
}
|
||||
|
||||
HWTEST2_F(ProductHelperTest, givenProductHelperThenCompressionIsForbidden, IsBeforeXe2HpgCore) {
|
||||
auto hwInfo = *defaultHwInfo;
|
||||
EXPECT_TRUE(productHelper->isCompressionForbidden(hwInfo));
|
||||
}
|
||||
|
||||
HWTEST2_F(ProductHelperTest, givenProductHelperThenCompressionIsNotForbidden, IsAtLeastXe2HpgCore) {
|
||||
auto hwInfo = *defaultHwInfo;
|
||||
EXPECT_FALSE(productHelper->isCompressionForbidden(hwInfo));
|
||||
}
|
||||
|
||||
@@ -98,8 +98,3 @@ ARLTEST_F(ArlProductHelperLinux, givenBooleanUncachedWhenCallOverridePatIndexThe
|
||||
EXPECT_EQ(0u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::buffer));
|
||||
EXPECT_EQ(3u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::commandBuffer));
|
||||
}
|
||||
|
||||
ARLTEST_F(ArlProductHelperLinux, givenProductHelperThenCompressionIsNotAllowed) {
|
||||
auto hwInfo = *defaultHwInfo;
|
||||
EXPECT_TRUE(productHelper->isCompressionForbidden(hwInfo));
|
||||
}
|
||||
|
||||
@@ -73,8 +73,3 @@ MTLTEST_F(MtlProductHelperLinux, givenBooleanUncachedWhenCallOverridePatIndexThe
|
||||
EXPECT_EQ(0u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::buffer));
|
||||
EXPECT_EQ(3u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::commandBuffer));
|
||||
}
|
||||
|
||||
MTLTEST_F(MtlProductHelperLinux, givenProductHelperThenCompressionIsNotAllowed) {
|
||||
auto hwInfo = *defaultHwInfo;
|
||||
EXPECT_TRUE(productHelper->isCompressionForbidden(hwInfo));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user