mirror of
https://github.com/hyprwm/aquamarine.git
synced 2025-12-20 02:30:02 +01:00
drmdumb: reopen displaynode (#203)
if the backends now gets a rendernode it wont call the authmagic on the displaynode making dumb buffer creation failing on certain drivers. so reopen it again in the creation of the CDRMDumbAllocator.
This commit is contained in:
parent
98968ac769
commit
84d53cadf8
1 changed files with 2 additions and 2 deletions
|
|
@ -249,7 +249,7 @@ SP<CDRMBackend> Aquamarine::CDRMBackend::fromGpu(std::string path, SP<CBackend>
|
|||
|
||||
drmBackend->grabFormats();
|
||||
|
||||
drmBackend->dumbAllocator = CDRMDumbAllocator::create(gpu->fd, backend);
|
||||
drmBackend->dumbAllocator = CDRMDumbAllocator::create(drmBackend->backend->reopenDRMNode(gpu->fd), backend);
|
||||
|
||||
// so that session can handle udev change/remove events for this gpu
|
||||
backend->session->sessionDevices.push_back(gpu);
|
||||
|
|
@ -333,7 +333,7 @@ std::vector<SP<CDRMBackend>> Aquamarine::CDRMBackend::attempt(SP<CBackend> backe
|
|||
newPrimary = drmBackend;
|
||||
}
|
||||
|
||||
drmBackend->dumbAllocator = CDRMDumbAllocator::create(gpu->fd, backend);
|
||||
drmBackend->dumbAllocator = CDRMDumbAllocator::create(drmBackend->backend->reopenDRMNode(gpu->fd), backend);
|
||||
|
||||
backends.emplace_back(drmBackend);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue