summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-07-12 22:00:24 -0500
committerDudemanguy <random342@airmail.cc>2023-07-14 14:24:45 +0000
commit1f683401aa52c03e231532589310415b2449047b (patch)
tree39339cee4bc5fff4e82db31c764a3bee7d9847b8 /osdep
parent2616b2b11eac26dfbb85926477a652d2a0540ef6 (diff)
downloadmpv-1f683401aa52c03e231532589310415b2449047b.tar.bz2
mpv-1f683401aa52c03e231532589310415b2449047b.tar.xz
vo_dmabuf_wayland: error out if compositor doesn't support the format
This was never implemented so in cases where the compositor didn't have support for the underlying format, the window would just be black and quite unhelpful. Well it turns out that fixing this is actually really easy because mpv has reconfig2 which returns the entire mp_image on every reconfig. We can just use that mp_image to try and obtain the format and modifier pair and then use that to check against what we know the compositor supports. If there are any problems, error out gracefully. Some code duplication with the vaapi/drmprime importers, but it's probably better to keep these separate. Fixes #11198 and fixes #11664
Diffstat (limited to 'osdep')
0 files changed, 0 insertions, 0 deletions