Skip to content

Commit

Permalink
fix: ignore primary if using evdi drivers for displaylink
Browse files Browse the repository at this point in the history
  • Loading branch information
nktnet1 committed Jul 24, 2024
1 parent 4c72cd4 commit 3ce6806
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,13 @@ 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 Expand Up @@ -1346,7 +1351,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
if (!MODE) // modeless commits are invalid
return false;

uint32_t flags = 0;
uint32_t flags = 0;

if (!onlyTest) {
if (NEEDS_RECONFIG) {
Expand Down

0 comments on commit 3ce6806

Please sign in to comment.