Skip to content

Commit 5f218cb

Browse files
pkwasnie-inteligcbot
authored andcommitted
enable ShortImplicitPayloadHeader on Xe1 HPG, Xe2
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 8758ab6 commit 5f218cb

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
@@ -1908,7 +1908,10 @@ bool allowShortImplicitPayloadHeader() const
19081908
if (!supportsZEBin())
19091909
return false;
19101910

1911-
return false;
1911+
if (m_platformInfo.eProductFamily == IGFX_PVC)
1912+
return false;
1913+
1914+
return isCoreChildOf(IGFX_XE_HP_CORE) && !isCoreChildOf(IGFX_XE3_CORE);
19121915
}
19131916

19141917
bool allowRemovingUnusedImplicitArguments() const

0 commit comments

Comments
 (0)