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
родитель
96c8bb11b1
Коммит
6c5121faff
@@ -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());
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user