From 51998687940133b38051d4d24e8e58baeeb7d334 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 12 Jul 2024 21:25:53 +0200 Subject: [PATCH] drm: reopen allocator node for mgpu --- src/backend/drm/DRM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index afca396..db5ca79 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -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");