-
Notifications
You must be signed in to change notification settings - Fork 341
Conversation
Look good to me. I'd like |
The idea is that we would standardise everything in the codebase to "speak" these formats, and the modifier would just go unused or possibly be set to @emersion Not really related to this PR, but it was/is intended for a intersection function to exist for this. I didn't get around to writing it, because I didn't get to the point where I needed it yet. It could be added later. |
|
No need for an array of modifiers in the struct, just make it a single uint64_t. Modern kernels only use the first plane's modifier and very old kernels expect all plane modifiers to be identical. |
It's done as a array of modifiers because that's how the GBM API works; it's the possible modifiers it can use, and the driver can pick the one it wants. It's not a separate modifier for each plane. |
This types adds a container for formats + modifiers. A list that is of [format [modifier]] was chosen instead of [format modifer] because that is how GBM accepts them. Co-Authored-By: emersion <contact@emersion.fr>
Err, you're right, thanks for pointing this out! Updated to split it in two commits. Changes I made to yours:
|
Ping |
This type adds a container for formats + modifiers.
This is cherry-picked from #1355.
wlr_format_set
is only used in one place for now, but it'll be useful in other places too in #1641.