Skip to content

onscreen/native: Fall back if COPY_MODE_SECONDARY_GPU fails to init

This can happen if we've got a GBM driver that is incomplete or buggy for any reason. Currently this includes the Nvidia driver when used as a secondary GPU, and as soon as they fix that it will use the fast path instead.

Falling back means we can still use it as a KMS device with all rendering done on the primary GPU instead. Just like a DisplayLink.

It's slow, but at least the screens all light up now and you get a usable desktop. Surprisingly it's still a better experience than using Xorg, maybe because we can flip the outputs independently with the native backend.

Fixes: #2166 (closed), #2182 (closed),,

Edited by Daniel van Vugt

Merge request reports