drm: reconfigure swapchain props after creating

This commit is contained in:
Vaxry 2024-08-20 20:58:07 +02:00
parent 1e43d9a719
commit b474796cdb

View file

@ -1281,6 +1281,8 @@ void Aquamarine::SDRMConnector::connect(drmModeConnector* connector) {
return; return;
output->swapchain = CSwapchain::create(backend->backend->primaryAllocator, backend->self.lock()); output->swapchain = CSwapchain::create(backend->backend->primaryAllocator, backend->self.lock());
output->swapchain->reconfigure(SSwapchainOptions{.length = 0, .scanout = true, .multigpu = !!backend->primary}); // mark the swapchain for scanout
output->needsFrame = true;
backend->backend->events.newOutput.emit(SP<IOutput>(output)); backend->backend->events.newOutput.emit(SP<IOutput>(output));
output->scheduleFrame(IOutput::AQ_SCHEDULE_NEW_CONNECTOR); output->scheduleFrame(IOutput::AQ_SCHEDULE_NEW_CONNECTOR);
} }