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
Этот коммит содержится в:
Jonathan Kim
2023-08-09 21:05:45 -04:00
коммит произвёл Jonathan Kim
родитель 96c8bb11b1
Коммит 6c5121faff
2 изменённых файлов: 6 добавлений и 0 удалений
+4
Просмотреть файл
@@ -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
Просмотреть файл
@@ -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; }