Skip to content

Commit

Permalink
drm: ignore primary argument when using evdi drivers (#25)
Browse files Browse the repository at this point in the history
* fix: ignore primary if using evdi drivers for displaylink

* style: removed curly braces from evdi if-check
  • Loading branch information
nktnet1 authored Jul 24, 2024
1 parent 4a1424e commit e569340
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,12 @@ bool Aquamarine::CDRMBackend::registerGPU(SP<CSessionDevice> gpu_, SP<CDRMBacken

gpuName = drmName;

auto drmVerName = drmVer->name ? 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);
Expand Down

0 comments on commit e569340

Please sign in to comment.