From e569340c6b27e0912ad7548277609923b3349f5f Mon Sep 17 00:00:00 2001 From: Khiet Tam Nguyen <86177399+nktnet1@users.noreply.github.com> Date: Thu, 25 Jul 2024 04:14:29 +1000 Subject: [PATCH] drm: ignore primary argument when using evdi drivers (#25) * fix: ignore primary if using evdi drivers for displaylink * style: removed curly braces from evdi if-check --- src/backend/drm/DRM.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index d0588a8..1c21c56 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -622,8 +622,12 @@ bool Aquamarine::CDRMBackend::registerGPU(SP gpu_, SPname ? drmVer->name : "unknown"; + if (std::string_view(drmVerName) == "evdi") + primary = {}; + backend->log(AQ_LOG_DEBUG, - std::format("drm: Starting backend for {}, with driver {}{}", drmName ? drmName : "unknown", drmVer->name ? drmVer->name : "unknown", + std::format("drm: Starting backend for {}, with driver {}{}", drmName ? drmName : "unknown", drmVerName, (primary ? std::format(" with primary {}", primary->gpu->path) : ""))); drmFreeVersion(drmVer);