mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
performance: Change compression format on BCS for Xe2
Related-To: NEO-15454 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3dcfef5812
commit
9f02c72f15
@@ -689,8 +689,7 @@ XE2_HPG_CORETEST_F(Xe2BcsTests, givenCompressibleDstBuffersWhenAppendBlitCommand
|
||||
const auto &rootDeviceEnvironment = context->getDevice(0)->getRootDeviceEnvironment();
|
||||
BlitCommandsHelper<FamilyType>::appendBlitCommandsForBuffer(blitProperties, *bltCmd, rootDeviceEnvironment);
|
||||
|
||||
auto resourceFormat = srcAllocation->getDefaultGmm()->gmmResourceInfo->getResourceFormat();
|
||||
auto compressionFormat = rootDeviceEnvironment.getGmmClientContext()->getSurfaceStateCompressionFormat(resourceFormat);
|
||||
auto compressionFormat = 2;
|
||||
|
||||
EXPECT_EQ(compressionFormat, bltCmd->getCompressionFormat());
|
||||
}
|
||||
@@ -723,8 +722,7 @@ XE2_HPG_CORETEST_F(Xe2BcsTests, givenCompressibleSrcBuffersWhenAppendBlitCommand
|
||||
const auto &rootDeviceEnvironment = context->getDevice(0)->getRootDeviceEnvironment();
|
||||
BlitCommandsHelper<FamilyType>::appendBlitCommandsForBuffer(blitProperties, *bltCmd, rootDeviceEnvironment);
|
||||
|
||||
auto resourceFormat = srcAllocation->getDefaultGmm()->gmmResourceInfo->getResourceFormat();
|
||||
auto compressionFormat = rootDeviceEnvironment.getGmmClientContext()->getSurfaceStateCompressionFormat(resourceFormat);
|
||||
auto compressionFormat = 2;
|
||||
|
||||
EXPECT_EQ(compressionFormat, bltCmd->getCompressionFormat());
|
||||
}
|
||||
|
||||
@@ -216,15 +216,13 @@ void BlitCommandsHelper<Family>::appendBlitCommandsMemCopy(const BlitProperties
|
||||
|
||||
if (dstAllocation) {
|
||||
if (dstAllocation->isCompressionEnabled()) {
|
||||
auto resourceFormat = dstAllocation->getDefaultGmm()->gmmResourceInfo->getResourceFormat();
|
||||
compressionFormat = rootDeviceEnvironment.getGmmClientContext()->getSurfaceStateCompressionFormat(resourceFormat);
|
||||
compressionFormat = 2;
|
||||
}
|
||||
}
|
||||
if (compressionFormat == 0) {
|
||||
if (srcAllocation) {
|
||||
if (srcAllocation->isCompressionEnabled()) {
|
||||
auto resourceFormat = srcAllocation->getDefaultGmm()->gmmResourceInfo->getResourceFormat();
|
||||
compressionFormat = rootDeviceEnvironment.getGmmClientContext()->getSurfaceStateCompressionFormat(resourceFormat);
|
||||
compressionFormat = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -578,7 +578,7 @@ HWTEST2_F(BlitTests, givenXe2HpgCoreWhenDstGraphicAlloctionWhenAppendBlitCommand
|
||||
BlitProperties properties = {};
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
|
||||
uint32_t newCompressionFormat = 1;
|
||||
uint32_t newCompressionFormat = 2;
|
||||
debugManager.flags.ForceBufferCompressionFormat.set(static_cast<int32_t>(newCompressionFormat));
|
||||
|
||||
auto gmm = std::make_unique<MockGmm>(pDevice->getGmmHelper());
|
||||
@@ -620,7 +620,7 @@ HWTEST2_F(BlitTests, givenXe2HpgCoreWhenDstGraphicAlloctionAndStatelessFlagSetAn
|
||||
BlitProperties properties = {};
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
|
||||
uint32_t newCompressionFormat = 1;
|
||||
uint32_t newCompressionFormat = 2;
|
||||
debugManager.flags.ForceBufferCompressionFormat.set(static_cast<int32_t>(newCompressionFormat));
|
||||
debugManager.flags.EnableStatelessCompressionWithUnifiedMemory.set(1);
|
||||
|
||||
@@ -641,7 +641,7 @@ HWTEST2_F(BlitTests, givenXe2HpgCoreWhenSrcGraphicAlloctionWhenAppendBlitCommand
|
||||
BlitProperties properties = {};
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
|
||||
uint32_t newCompressionFormat = 1;
|
||||
uint32_t newCompressionFormat = 2;
|
||||
debugManager.flags.ForceBufferCompressionFormat.set(static_cast<int32_t>(newCompressionFormat));
|
||||
|
||||
auto gmm = std::make_unique<MockGmm>(pDevice->getGmmHelper());
|
||||
@@ -683,7 +683,7 @@ HWTEST2_F(BlitTests, givenXe2HpgCoreWhenSrcGraphicAlloctionAndStatelessFlagSetAn
|
||||
BlitProperties properties = {};
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
|
||||
uint32_t newCompressionFormat = 1;
|
||||
uint32_t newCompressionFormat = 2;
|
||||
debugManager.flags.ForceBufferCompressionFormat.set(static_cast<int32_t>(newCompressionFormat));
|
||||
debugManager.flags.EnableStatelessCompressionWithUnifiedMemory.set(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user