diff options
author | Aaron Boxer <boxerab@protonmail.com> | 2023-02-07 21:03:35 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-11 00:46:46 +0000 |
commit | 49fd6caa432a89b715670ccbabff9c2d14d975b0 (patch) | |
tree | 2990f71f1c8e68ed43bca9b26c70a0865684b28e /video/out/wayland_common.c | |
parent | 8ba7b8f0d2ec838bac10ca011bd0065b2a3b454a (diff) | |
download | mpv-49fd6caa432a89b715670ccbabff9c2d14d975b0.tar.bz2 mpv-49fd6caa432a89b715670ccbabff9c2d14d975b0.tar.xz |
vo_dmabuf_wayland: reject hw formats not supported by compositor
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r-- | video/out/wayland_common.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index b1631cbb20..9c415b38de 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -2234,24 +2234,6 @@ void vo_wayland_set_opaque_region(struct vo_wayland_state *wl, int alpha) } } -bool vo_wayland_supported_format(struct vo *vo, uint32_t drm_format, uint64_t modifier) -{ - struct vo_wayland_state *wl = vo->wl; - - const struct { - uint32_t format; - uint32_t padding; - uint64_t modifier; - } *formats = wl->format_map; - - for (int i = 0; i < wl->format_size / 16; ++i) { - if (drm_format == formats[i].format && modifier == formats[i].modifier) - return true; - } - - return false; -} - void vo_wayland_uninit(struct vo *vo) { struct vo_wayland_state *wl = vo->wl; |