drm: don't connect before crtcs are guaranteed (#68)

This commit is contained in:
Ikalco 2024-08-29 08:51:04 -05:00 committed by GitHub
parent 23c7925dd3
commit 561f50bfae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -246,7 +246,7 @@ std::vector<SP<CDRMBackend>> Aquamarine::CDRMBackend::attempt(SP<CBackend> backe
drmBackend->grabFormats();
drmBackend->scanConnectors();
drmBackend->scanConnectors(false);
drmBackend->recheckCRTCs();
@ -279,7 +279,7 @@ bool Aquamarine::CDRMBackend::sessionActive() {
void Aquamarine::CDRMBackend::restoreAfterVT() {
backend->log(AQ_LOG_DEBUG, "drm: Restoring after VT switch");
scanConnectors();
scanConnectors(false);
recheckCRTCs();
backend->log(AQ_LOG_DEBUG, "drm: Rescanned connectors");