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

platform/DRMFormat: Add as_mir_format converter #2750

Merged
merged 1 commit into from Dec 16, 2022
Merged

platform/DRMFormat: Add as_mir_format converter #2750

merged 1 commit into from Dec 16, 2022

Conversation

RAOF
Copy link
Contributor

@RAOF RAOF commented Dec 13, 2022

Ideally we would migrate to a world where DRMFormat is the canonical type for pixel formats; there are more of them, and the descriptor contains more useful information that code using MirPixelFormat has had to ad-hoc.

Make it possible to start doing this by adding a conversion from DRMFormat to MirPixelFormat. This is necessarily lossy, as there are a lot of DRMFormats that have no corresponding MirPixelFormat, but that implies that current code couldn't have properly handled them, so it's OK.

@RAOF RAOF changed the base branch from main to core-shm-handling December 13, 2022 05:17
@RAOF RAOF self-assigned this Dec 13, 2022
Copy link
Contributor

@AlanGriffiths AlanGriffiths left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we want the dependency first...

Ideally we would migrate to a world where `DRMFormat` is the canonical type
for pixel formats; there are more of them, and the descriptor contains more
useful information that code using `MirPixelFormat` has had to ad-hoc.

Make it possible to start doing this by adding a conversion from `DRMFormat`
to `MirPixelFormat`. This is necessarily lossy, as there are a lot of
`DRMFormat`s that have no corresponding `MirPixelFormat`, but that implies
that *current* code couldn't have properly handled them, so it's OK.
@bors bors bot changed the base branch from core-shm-handling to main December 16, 2022 15:29
@Saviq
Copy link
Collaborator

Saviq commented Dec 16, 2022

This can now go in.

bors r=AlanGriffiths

@bors bors bot merged commit f9a5f64 into main Dec 16, 2022
@bors bors bot deleted the format-helpers branch December 16, 2022 18:05
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

3 participants