Skip to content

Commit c595271

Browse files
committed
Fix OpenGL device detection
1 parent d471d0b commit c595271

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Src/GPUPerfAPIGL/ASICInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ bool GetASICInfo(ASICInfo& rASICInfo)
357357
case ASIC_Gfx6:
358358
case ASIC_Gfx7:
359359
case ASIC_Gfx8:
360+
case ASIC_Gfx9:
360361
if (!GetCounterValue(nASICGroupId, "GPIN_001", rASICInfo.nNumSIMD))
361362
{
362363
GPA_LogError("Unable to query GPIN_001.");

Src/GPUPerfAPIGL/GPUPerfAPIGL.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,22 @@ GPA_Status GPA_IMP_GetHWInfo(void* pContext, GPA_HWInfo* pHwInfo)
709709
pHwInfo->SetDeviceID(0x67FF);
710710
break;
711711

712+
case ATIASIC_ID_VEGAM:
713+
pHwInfo->SetDeviceID(0x694C);
714+
break;
715+
712716
case ATIASIC_ID_LEXA:
713717
pHwInfo->SetDeviceID(0x699F);
714718
break;
715719

720+
case ATIASIC_ID_VEGA:
721+
pHwInfo->SetDeviceID(0x687F);
722+
break;
723+
724+
case ATIASIC_ID_VEGA_APU:
725+
pHwInfo->SetDeviceID(0x15DD);
726+
break;
727+
716728
default:
717729
GPA_LogError("Unsupported asic ID.");
718730
return GPA_STATUS_ERROR_HARDWARE_NOT_SUPPORTED;

0 commit comments

Comments
 (0)