Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kms: Output mirroring #448

Merged
merged 7 commits into from
May 7, 2024
Merged

kms: Output mirroring #448

merged 7 commits into from
May 7, 2024

Conversation

Drakulix
Copy link
Member

@Drakulix Drakulix commented Apr 25, 2024

Output mirroring! Including cases of mismatched resolutions/orientations/refresh-rates/gpus

TODO:

  • Optimize happy path, where we can attach the connector to the crtc of the source surface directly TBD after the larger KMS refactor
  • New protocol for cosmic-randr and cosmic-settings (current configuration can only be set via outputs.ron)
  • Clear color for letterboxed mirrors? Lets just use black
  • Can we possibly allocate a dmabuf instead of a texture as a render target for better performance? Not worth it.
    • Would enable us to keep the render-device (faster rendering, but a new copy operation..) Found a way to do this without another copy and without a dmabuf
    • Potentially eligible for direct-scanout (though in these cases the dimensions never match up, can any display controller actually handle this?) I don't think they can, not worth the trouble.

@Drakulix Drakulix merged commit 954aa6e into master May 7, 2024
6 checks passed
@Drakulix Drakulix deleted the mirroring branch May 7, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant