Skip to content

Commit 13e925f

Browse files
whitebelyashxCollateral
authored andcommitted
Add vendor ids for non-PC/exotic vendors
Some are used on PC (like Qualcomm on WoA or Apple Silicon), so might be useful. Haven't touched the driver version detection logic.
1 parent 62a5106 commit 13e925f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/main/java/net/vulkanmod/vulkan/device/Device.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,15 @@ public Device(VkPhysicalDevice device) {
7272
private static String decodeVendor(int i) {
7373
return switch (i) {
7474
case (0x10DE) -> "Nvidia";
75-
// AMD has two deviceIds, apparently
76-
case (0x1022), (0x1002) -> "AMD";
75+
case (0x1022), (0x1002) -> "AMD"; // AMD has two deviceIds, apparently
7776
case (0x8086) -> "Intel";
77+
case (0x1010) -> "Imagination Technologies";
78+
case (0x13B5) -> "ARM";
79+
case (0x5143) -> "Qualcomm";
80+
case (0x106B) -> "Apple";
81+
case (0x14E4) -> "Broadcom";
82+
case (0x1AE0) -> "Google"; // Not sure about this, SwiftShader devices have this id
83+
case (0x10005) -> "Mesa"; // Honeykrisp on Apple devices has this vendorId for some reason
7884
default -> "undef"; //Either AMD or Unknown Driver version/vendor and.or Encoding Scheme
7985
};
8086
}

0 commit comments

Comments
 (0)