mirror of
https://github.com/hyprwm/aquamarine.git
synced 2025-12-20 04:40:12 +01:00
rendernode: dont bother finding one on evdi
evdi/displaylink devices doesnt give us a rendernode at all, and asahi was hard to associate if a rendernode was related to the displaynode/card so we fallback to just first found if that occurs. might be more appropiate to figure out a proper way to deal with these cases then workaround ever single driver that doesnt give rendernodes but so far seems only to be evdi. problem that occured is a 3 gpu situation, the evdi card ended up using a rendernode for a complete different gpu because it fallbacked to that.
This commit is contained in:
parent
655e067f96
commit
81a0ddf42f
1 changed files with 6 additions and 1 deletions
|
|
@ -150,7 +150,12 @@ static std::vector<SP<CSessionDevice>> scanGPUs(SP<CBackend> backend) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
sessionDevice->resolveMatchingRenderNode(device);
|
auto drmVer = drmGetVersion(sessionDevice->fd);
|
||||||
|
auto drmVerName = drmVer->name ? drmVer->name : "unknown";
|
||||||
|
if (std::string_view(drmVerName) != "evdi")
|
||||||
|
sessionDevice->resolveMatchingRenderNode(device);
|
||||||
|
|
||||||
|
drmFreeVersion(drmVer);
|
||||||
|
|
||||||
udev_device_unref(device);
|
udev_device_unref(device);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue