wayland: add support for NV12 format
This commit is contained in:
parent
95327685c1
commit
97e8d487a0
15 changed files with 182 additions and 119 deletions
|
|
@ -38,9 +38,15 @@ impl ZwpLinuxDmabufV1Global {
|
|||
if let Some(ctx) = client.state.render_ctx.get() {
|
||||
let formats = ctx.formats();
|
||||
for format in formats.values() {
|
||||
if format.implicit_external_only && !ctx.supports_external_texture() {
|
||||
continue;
|
||||
}
|
||||
obj.send_format(format.format.drm);
|
||||
if version >= MODIFIERS_SINCE_VERSION {
|
||||
for modifier in format.modifiers.values() {
|
||||
if modifier.external_only && !ctx.supports_external_texture() {
|
||||
continue;
|
||||
}
|
||||
obj.send_modifier(format.format.drm, modifier.modifier);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue