mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
targets/egl-static: fix nouveau and vmwgfx for Android
drmVersion and driver specific ioctls are used to get the PCI ID from a DRM fd. Eexpand the mechanism to nouveau and vmwgfx, except that for nouveau, only the vendor ID is needed, and for vmwgfx, always assume SVGA II.
This commit is contained in:
parent
d074acb4fa
commit
822fad64f8
1 changed files with 10 additions and 0 deletions
|
|
@ -167,6 +167,16 @@ drm_fd_get_pci_id(int fd, int *vendor_id, int *chip_id)
|
|||
*chip_id = -1;
|
||||
}
|
||||
}
|
||||
else if (util_strcmp(version->name, "nouveau") == 0) {
|
||||
*vendor_id = 0x10de;
|
||||
/* not used */
|
||||
*chip_id = 0;
|
||||
}
|
||||
else if (util_strcmp(version->name, "vmwgfx") == 0) {
|
||||
*vendor_id = 0x15ad;
|
||||
/* assume SVGA II */
|
||||
*chip_id = 0x0405;
|
||||
}
|
||||
|
||||
drmFreeVersion(version);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue