drm: reconfigure swapchain props after creating

This commit is contained in:
Vaxry 2024-08-20 20:58:07 +02:00
parent 1e43d9a719
commit b474796cdb
1 changed files with 2 additions and 0 deletions

View File

@ -1281,6 +1281,8 @@ void Aquamarine::SDRMConnector::connect(drmModeConnector* connector) {
return;
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));
output->scheduleFrame(IOutput::AQ_SCHEDULE_NEW_CONNECTOR);
}