Skip to content

Commit 507637e

Browse files
Graham SiderGraham Sider
authored andcommitted
kfdtest: Update COMPUTE_PGM_RSRC1 for software trap
For software trap in GFX11, COMPUTE_PGM_RSRC1 must have PRIV = 1. Signed-off-by: Graham Sider <Graham.Sider@amd.com> Change-Id: Id504889c3ca2588b6c8cefdebaec00dcfc217995
1 parent 6c7c3da commit 507637e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/kfdtest/src/Dispatch.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,11 @@ void Dispatch::BuildIb() {
138138
pgmRsrc2 |= (1 << COMPUTE_PGM_RSRC2__EXCP_EN_MSB__SHIFT)
139139
& COMPUTE_PGM_RSRC2__EXCP_EN_MSB_MASK;
140140

141+
const bool priv = (m_FamilyId == FAMILY_GFX11);
141142
const unsigned int COMPUTE_PGM_RSRC[] = {
142-
// PGM_RSRC1 = { VGPRS: 16 SGPRS: 16 PRIORITY: m_SpiPriority FLOAT_MODE: c0 PRIV: 0
143-
// DX10_CLAMP: 0 DEBUG_MODE: 0 IEEE_MODE: 0 BULKY: 0 CDBG_USER: 0 }
144-
0x000c0084 | ((m_SpiPriority & 3) << 10),
143+
// PGM_RSRC1 = { VGPRS: 16 SGPRS: 16 PRIORITY: m_SpiPriority FLOAT_MODE: c0
144+
// PRIV: 0 (1 for GFX11) DX10_CLAMP: 0 DEBUG_MODE: 0 IEEE_MODE: 0 BULKY: 0 CDBG_USER: 0 }
145+
0x000c0084 | ((m_SpiPriority & 3) << 10) | (priv << 20),
145146
pgmRsrc2
146147
};
147148

0 commit comments

Comments
 (0)