mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
refactor: respect comp format debug flags on iGPU
Related-To: NEO-14942 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3478aaec9d
commit
de92cd90be
@@ -163,6 +163,7 @@ DECLARE_DEBUG_VARIABLE(int32_t, ForceMemoryBankIndexOverride, -1, "-1: default,
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, EnablePrivateScratchSlot1, -1, "-1: default, 0: disable, 1: enable Allows using private scratch space")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, DisablePipeControlPrecedingPostSyncCommand, -1, "-1 default - disabled adding PIPE_CONTROL, 0 - disabled adding PIPE_CONTROL, 1 - enabled adding PIPE_CONTROL")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, FormatForStatelessCompressionWithUnifiedMemory, 0xF, "Format for stateless compression with unified memory")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, BcsCompressionFormatForXe2Plus, -1, "Format for compression starting from Xe2 on BCS copies")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, ForceBufferCompressionFormat, -1, "-1: default, >0: Format value")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, EnableHwGenerationLocalIds, -1, "-1: default, 0: disable, 1: enable : Enables generation of local ids on HW")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, WalkerPartitionPreferHighestDimension, -1, "-1: default, 0: prefer biggest dimension, 1: prefer Z over Y over X if they divide partition count evenly")
|
||||
|
||||
@@ -19,10 +19,8 @@ void BlitCommandsHelper<GfxFamily>::appendBlitMemSetCompressionFormat(void *blit
|
||||
memSetCmd->setCompressionFormat(compressionFormat);
|
||||
}
|
||||
|
||||
if (debugManager.flags.EnableStatelessCompressionWithUnifiedMemory.get()) {
|
||||
if (!MemoryPoolHelper::isSystemMemoryPool(dstAlloc->getMemoryPool())) {
|
||||
memSetCmd->setCompressionFormat(debugManager.flags.FormatForStatelessCompressionWithUnifiedMemory.get());
|
||||
}
|
||||
if (debugManager.flags.BcsCompressionFormatForXe2Plus.get() != -1) {
|
||||
memSetCmd->setCompressionFormat(debugManager.flags.BcsCompressionFormatForXe2Plus.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -227,21 +227,8 @@ void BlitCommandsHelper<Family>::appendBlitCommandsMemCopy(const BlitProperties
|
||||
}
|
||||
}
|
||||
|
||||
if (debugManager.flags.EnableStatelessCompressionWithUnifiedMemory.get()) {
|
||||
bool enable = false;
|
||||
if (srcAllocation) {
|
||||
if (!MemoryPoolHelper::isSystemMemoryPool(srcAllocation->getMemoryPool())) {
|
||||
enable = true;
|
||||
}
|
||||
}
|
||||
if (dstAllocation) {
|
||||
if (!MemoryPoolHelper::isSystemMemoryPool(dstAllocation->getMemoryPool())) {
|
||||
enable = true;
|
||||
}
|
||||
}
|
||||
if (enable) {
|
||||
compressionFormat = static_cast<uint8_t>(debugManager.flags.FormatForStatelessCompressionWithUnifiedMemory.get());
|
||||
}
|
||||
if (debugManager.flags.BcsCompressionFormatForXe2Plus.get() != -1) {
|
||||
compressionFormat = static_cast<uint8_t>(debugManager.flags.BcsCompressionFormatForXe2Plus.get());
|
||||
}
|
||||
|
||||
blitCmd.setCompressionFormat(static_cast<COMPRESSION_FORMAT30>(compressionFormat));
|
||||
|
||||
@@ -183,21 +183,8 @@ void BlitCommandsHelper<Family>::appendBlitCommandsMemCopy(const BlitProperties
|
||||
}
|
||||
}
|
||||
|
||||
if (debugManager.flags.EnableStatelessCompressionWithUnifiedMemory.get()) {
|
||||
bool enable = false;
|
||||
if (srcAllocation) {
|
||||
if (!MemoryPoolHelper::isSystemMemoryPool(srcAllocation->getMemoryPool())) {
|
||||
enable = true;
|
||||
}
|
||||
}
|
||||
if (dstAllocation) {
|
||||
if (!MemoryPoolHelper::isSystemMemoryPool(dstAllocation->getMemoryPool())) {
|
||||
enable = true;
|
||||
}
|
||||
}
|
||||
if (enable) {
|
||||
compressionFormat = static_cast<uint8_t>(debugManager.flags.FormatForStatelessCompressionWithUnifiedMemory.get());
|
||||
}
|
||||
if (debugManager.flags.BcsCompressionFormatForXe2Plus.get() != -1) {
|
||||
compressionFormat = static_cast<uint8_t>(debugManager.flags.BcsCompressionFormatForXe2Plus.get());
|
||||
}
|
||||
|
||||
blitCmd.setCompressionFormat(static_cast<COMPRESSION_FORMAT30>(compressionFormat));
|
||||
|
||||
Reference in New Issue
Block a user