Skip to content

Commit

Permalink
drm: reopen allocator node for mgpu
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 12, 2024
1 parent 05219d5 commit 5199868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ bool Aquamarine::CDRMBackend::initMgpu() {
if (!primary)
return true;

mgpu.allocator = CGBMAllocator::create(gpu->fd, backend);
mgpu.allocator = CGBMAllocator::create(backend->reopenDRMNode(gpu->fd), backend);

if (!mgpu.allocator) {
backend->log(AQ_LOG_ERROR, "drm: initMgpu: no allocator");
Expand Down

0 comments on commit 5199868

Please sign in to comment.