@@ -9,6 +9,8 @@ const char* FF_GPU_VENDOR_NAME_NVIDIA = "NVIDIA";
99const char * FF_GPU_VENDOR_NAME_VMWARE = "VMware" ;
1010const char * FF_GPU_VENDOR_NAME_PARALLEL = "Parallel" ;
1111const char * FF_GPU_VENDOR_NAME_MICROSOFT = "Microsoft" ;
12+ const char * FF_GPU_VENDOR_NAME_REDHAT = "RedHat" ;
13+ const char * FF_GPU_VENDOR_NAME_ORACLE = "Oracle" ;
1214
1315static inline bool arrayContains (const unsigned arr [], unsigned vendorId , unsigned length )
1416{
@@ -22,6 +24,7 @@ static inline bool arrayContains(const unsigned arr[], unsigned vendorId, unsign
2224
2325const char * ffGetGPUVendorString (unsigned vendorId )
2426{
27+ // https://devicehunt.com/all-pci-vendors
2528 if (vendorId == 0x106b )
2629 return FF_GPU_VENDOR_NAME_APPLE ;
2730 if (arrayContains ((const unsigned []) {0x1002 , 0x1022 }, vendorId , 2 ))
@@ -32,10 +35,14 @@ const char* ffGetGPUVendorString(unsigned vendorId)
3235 return FF_GPU_VENDOR_NAME_NVIDIA ;
3336 else if (arrayContains ((const unsigned []) {0x15ad }, vendorId , 1 ))
3437 return FF_GPU_VENDOR_NAME_VMWARE ;
38+ else if (arrayContains ((const unsigned []) {0x1af4 }, vendorId , 1 ))
39+ return FF_GPU_VENDOR_NAME_REDHAT ;
3540 else if (arrayContains ((const unsigned []) {0x1ab8 }, vendorId , 1 ))
3641 return FF_GPU_VENDOR_NAME_PARALLEL ;
3742 else if (arrayContains ((const unsigned []) {0x1414 }, vendorId , 1 ))
3843 return FF_GPU_VENDOR_NAME_MICROSOFT ;
44+ else if (arrayContains ((const unsigned []) {0x108e }, vendorId , 1 ))
45+ return FF_GPU_VENDOR_NAME_ORACLE ;
3946 return NULL ;
4047}
4148
0 commit comments