drm: reopen allocator node for mgpu

This commit is contained in:
Vaxry 2024-07-12 21:25:53 +02:00
parent 05219d5287
commit 5199868794

View file

@ -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");