performance: adjust compression handling

Related-To: NEO-11882

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2024-07-03 08:18:56 +00:00
committed by Compute-Runtime-Automation
parent 4f0e71195e
commit 3dd051c3ee
5 changed files with 19 additions and 6 deletions

View File

@@ -545,7 +545,7 @@ HWTEST2_F(CompressionMemoryTest, givenDeviceUsmWhenAllocatingThenEnableCompressi
{
auto allocation = allocDeviceMem(2048);
auto supportedByDefault = l0GfxCoreHelper.usmCompressionSupported(hwInfo) && l0GfxCoreHelper.forceDefaultUsmCompressionSupport();
auto supportedByDefault = gfxCoreHelper.usmCompressionSupported(hwInfo) || (l0GfxCoreHelper.usmCompressionSupported(hwInfo) && l0GfxCoreHelper.forceDefaultUsmCompressionSupport());
EXPECT_EQ(supportedByDefault, allocation->isCompressionEnabled());
@@ -624,7 +624,7 @@ HWTEST2_F(CompressionMemoryTest, givenDeviceUsmWhenAllocatingThenEnableCompressi
auto allocation = allocDeviceMem(2048);
EXPECT_FALSE(allocation->isCompressionEnabled());
EXPECT_EQ(gfxCoreHelper.usmCompressionSupported(hwInfo), allocation->isCompressionEnabled());
context->freeMem(ptr);
@@ -651,7 +651,7 @@ HWTEST2_F(CompressionMemoryTest, givenDeviceUsmWhenAllocatingThenEnableCompressi
auto allocation = allocDeviceMem(1);
if (!gfxCoreHelper.isBufferSizeSuitableForCompression(1)) {
if (!gfxCoreHelper.isBufferSizeSuitableForCompression(1) && !gfxCoreHelper.usmCompressionSupported(hwInfo)) {
EXPECT_FALSE(allocation->isCompressionEnabled());
}