kfdtest: allow toggle of dispatch privilege

For GFX11 debugger testing, waves require to start in non-priv mode for
some test cases, so allow tester to set this.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Change-Id: Iee93fda926bfd336d51c79c086f1f75bc35b70e5
This commit is contained in:
Jonathan Kim
2023-08-09 21:05:45 -04:00
committed by Jonathan Kim
parent 96c8bb11b1
commit 6c5121faff
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -74,6 +74,10 @@ void Dispatch::SetSpiPriority(unsigned int priority) {
m_SpiPriority = priority;
}
void Dispatch::SetPriv(bool priv) {
m_NeedCwsrWA = priv;
}
void Dispatch::Submit(BaseQueue& queue) {
ASSERT_NE(m_pEop, (void*)0);
EXPECT_EQ(m_FamilyId, queue.GetFamilyId());
+2
View File
@@ -45,6 +45,8 @@ class Dispatch {
void SetScratch(int numWaves, int waveSize, HSAuint64 scratch_base);
void SetSpiPriority(unsigned int priority);
void SetPriv(bool priv);
HsaEvent *GetHsaEvent() { return m_pEop; }