Skip to content

Commit 8ccfb90

Browse files
pkwasnie-inteligcbot
authored andcommitted
enable ShortImplicitPayloadHeader on Xe1 HPG
Compute workloads add following implicit arguments: 1. payloadHeader - 8 x i32 packing global_id_offset (3 x i32), local_size (3 x i32) and 2 x i32 reserved. 2. enqueued_local_size - 3 x i32 local_size is never used in favour of enqueued_local_size. In the end, payloadHeader has unused 20 bytes. This commit enables short payload header on Xe1 HPG platforms.
1 parent 8262b45 commit 8ccfb90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

IGC/Compiler/CISACodeGen/Platform.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,10 @@ bool allowShortImplicitPayloadHeader() const
19021902
if (IGC_IS_FLAG_SET(ShortImplicitPayloadHeader))
19031903
return IGC_IS_FLAG_ENABLED(ShortImplicitPayloadHeader);
19041904

1905-
return isCoreChildOf(IGFX_XE2_HPG_CORE) && !isCoreChildOf(IGFX_XE3_CORE);
1905+
if (m_platformInfo.eProductFamily == IGFX_PVC)
1906+
return false;
1907+
1908+
return isCoreChildOf(IGFX_XE_HP_CORE) && !isCoreChildOf(IGFX_XE3_CORE);
19061909
}
19071910

19081911
bool allowRemovingUnusedImplicitArguments() const

0 commit comments

Comments
 (0)