kmscon: fix --fbdev implying --all-gpus
We currently have no code that sets PRIMARY flags for fbdev devices so this logic does not make sense with --fbdev. Hence, imply --all-gpus when --fbdev is set. Reported-by: Ran Benita <ran234@gmail.com> Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
e495126c80
commit
f5a98b0c6b
@ -224,7 +224,12 @@ static int app_seat_add_video(struct app_seat *seat,
|
||||
}
|
||||
}
|
||||
|
||||
if (!seat->conf->all_gpus) {
|
||||
/* with --all-gpus we avoid any further filtering. With --fbdev we
|
||||
* already filtered all non-fbdev devices so there is currently no
|
||||
* reason to do further filtering, either.
|
||||
* TODO: We need to set PRIMARY flags to fbdev devices, too. Otherwise
|
||||
* we might end up with the same problems as DRM devices have. */
|
||||
if (!seat->conf->all_gpus && !seat->conf->fbdev) {
|
||||
if (seat->conf->primary_gpu_only && !(flags & UTERM_MONITOR_PRIMARY)) {
|
||||
log_info("ignoring video device %s on seat %s as it is no primary GPU",
|
||||
node, seat->name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user