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 authored and Jonathan Kim committed 2023-08-18 12:09:07 -04:00
1 vanhempi 96c8bb11b1
commit 6c5121faff
2 files changed
+6

No files matched your search

+4
Näytä tiedosto
@@ -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
Näytä tiedosto
@@ -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; }