mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Do not require RenderCompressed or MediaCompressed flags for compression
Change-Id: I19782bf16b94c34a0af6de62203e2a1b5c25a359 Related-To: NEO-3771
This commit is contained in:
committed by
sys_ocldev
parent
b78c9ecb39
commit
e43e06192f
@@ -419,11 +419,11 @@ TEST_F(GmmMediaCompressedTests, givenMediaAndRenderCompressedGmmUnifiedAuxTransl
|
||||
EXPECT_THROW(gmm->unifiedAuxTranslationCapable(), std::exception);
|
||||
}
|
||||
|
||||
TEST_F(GmmMediaCompressedTests, givenNotMediaAndNotRenderCompressedGmmUnifiedAuxTranslationCapableReturnsFalse) {
|
||||
TEST_F(GmmMediaCompressedTests, givenNotMediaAndNotRenderCompressedGmmUnifiedAuxTranslationCapableReturnsTrue) {
|
||||
flags->Info.MediaCompressed = false;
|
||||
flags->Info.RenderCompressed = false;
|
||||
|
||||
EXPECT_FALSE(gmm->unifiedAuxTranslationCapable());
|
||||
EXPECT_TRUE(gmm->unifiedAuxTranslationCapable());
|
||||
}
|
||||
|
||||
namespace GmmTestConst {
|
||||
@@ -607,7 +607,8 @@ TEST(GmmTest, givenAllValidFlagsWhenAskedForUnifiedAuxTranslationCapabilityThenR
|
||||
mockResource->setUnifiedAuxTranslationCapable();
|
||||
EXPECT_EQ(1u, mockResource->mockResourceCreateParams.Flags.Gpu.CCS);
|
||||
EXPECT_EQ(1u, mockResource->mockResourceCreateParams.Flags.Gpu.UnifiedAuxSurface);
|
||||
EXPECT_EQ(1u, mockResource->mockResourceCreateParams.Flags.Info.RenderCompressed);
|
||||
EXPECT_EQ(0u, mockResource->mockResourceCreateParams.Flags.Info.RenderCompressed);
|
||||
EXPECT_EQ(0u, mockResource->mockResourceCreateParams.Flags.Info.MediaCompressed);
|
||||
|
||||
EXPECT_TRUE(gmm->unifiedAuxTranslationCapable());
|
||||
}
|
||||
@@ -624,10 +625,6 @@ TEST(GmmTest, givenInvalidFlagsSetWhenAskedForUnifiedAuxTranslationCapabilityThe
|
||||
mockResource->mockResourceCreateParams.Flags.Gpu.CCS = 1;
|
||||
mockResource->mockResourceCreateParams.Flags.Gpu.UnifiedAuxSurface = 0;
|
||||
EXPECT_FALSE(gmm->unifiedAuxTranslationCapable()); // UnifiedAuxSurface == 0
|
||||
|
||||
mockResource->mockResourceCreateParams.Flags.Gpu.UnifiedAuxSurface = 1;
|
||||
mockResource->mockResourceCreateParams.Flags.Info.RenderCompressed = 0;
|
||||
EXPECT_FALSE(gmm->unifiedAuxTranslationCapable()); // RenderCompressed == 0
|
||||
}
|
||||
|
||||
TEST(GmmTest, givenHwInfoWhenDeviceIsCreatedTheSetThisHwInfoToGmmHelper) {
|
||||
|
||||
@@ -120,7 +120,6 @@ uint32_t MockGmmResourceInfo::getBitsPerPixel() {
|
||||
void MockGmmResourceInfo::setUnifiedAuxTranslationCapable() {
|
||||
mockResourceCreateParams.Flags.Gpu.CCS = 1;
|
||||
mockResourceCreateParams.Flags.Gpu.UnifiedAuxSurface = 1;
|
||||
mockResourceCreateParams.Flags.Info.RenderCompressed = 1;
|
||||
}
|
||||
|
||||
void MockGmmResourceInfo::setMultisampleControlSurface() {
|
||||
|
||||
Reference in New Issue
Block a user