KFDTest: remove the usage global g_TestGPUFamilyId

Adjust the KFDTest for multi-gou support

Change-Id: Ib3491e3f645d35fdba6ab702d65fcc86f48d3958
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Este commit está contenido en:
shaoyunl
2019-07-16 16:46:39 -04:00
padre e9882daf11
commit b4e834ab61
Se han modificado 16 ficheros con 47 adiciones y 18 borrados
+2 -2
Ver fichero
@@ -56,7 +56,7 @@ unsigned int PM4Queue::RptrWhenConsumed() {
void PM4Queue::SubmitPacket() {
// m_pending Wptr is in dwords
if (g_TestGPUFamilyId < FAMILY_AI) {
if (m_FamilyId < FAMILY_AI) {
// Pre-Vega10 uses 32-bit wptr and doorbell
MemoryBarrier();
*m_Resources.Queue_write_ptr = m_pendingWptr;
@@ -73,7 +73,7 @@ void PM4Queue::SubmitPacket() {
void PM4Queue::Wait4PacketConsumption(HsaEvent *event, unsigned int timeOut) {
if (event) {
PlaceAndSubmitPacket(PM4ReleaseMemoryPacket(g_TestGPUFamilyId, 0,
PlaceAndSubmitPacket(PM4ReleaseMemoryPacket(m_FamilyId, 0,
event->EventData.HWData2,
event->EventId,
true));