summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorAaron Boxer <boxerab@protonmail.com>2022-05-18 10:35:53 -0400
committerDudemanguy <random342@airmail.cc>2022-05-24 21:39:34 +0000
commitdefb02daa461200f4de972c57c4ac8dc108feb5f (patch)
tree0f6725f695b3d8be240c71bc1c5e35aacc3fdb8c /wscript_build.py
parent9022b1b51dc1204760f9d495e7b3b5550f501bf3 (diff)
downloadmpv-defb02daa461200f4de972c57c4ac8dc108feb5f.tar.bz2
mpv-defb02daa461200f4de972c57c4ac8dc108feb5f.tar.xz
vo: add new vaapi-wayland driver
This driver makes use of dmabuffer and viewporter interfaces to enable efficient display of vaapi surfaces, avoiding any unnecessary colour space conversion, and avoiding scaling or colour conversion using GPU shader resources.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 46191b8196..c05df1f964 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -127,6 +127,18 @@ def build(ctx):
ctx.wayland_protocol_header(proto_dir = ctx.env.WL_PROTO_DIR,
protocol = "unstable/xdg-decoration/xdg-decoration-unstable-v1",
target = "generated/wayland/xdg-decoration-unstable-v1.h")
+ ctx.wayland_protocol_code(proto_dir = ctx.env.WL_PROTO_DIR,
+ protocol = "unstable/linux-dmabuf/linux-dmabuf-unstable-v1",
+ target = "generated/wayland/linux-dmabuf-unstable-v1.c")
+ ctx.wayland_protocol_header(proto_dir = ctx.env.WL_PROTO_DIR,
+ protocol = "unstable/linux-dmabuf/linux-dmabuf-unstable-v1",
+ target = "generated/wayland/linux-dmabuf-unstable-v1.h")
+ ctx.wayland_protocol_code(proto_dir = ctx.env.WL_PROTO_DIR,
+ protocol = "stable/viewporter/viewporter",
+ target = "generated/wayland/viewporter.c")
+ ctx.wayland_protocol_header(proto_dir = ctx.env.WL_PROTO_DIR,
+ protocol = "stable/viewporter/viewporter",
+ target = "generated/wayland/viewporter.h")
ctx(features = "ebml_header", target = "generated/ebml_types.h")
ctx(features = "ebml_definitions", target = "generated/ebml_defs.inc")
@@ -506,6 +518,7 @@ def build(ctx):
( "video/out/vo_sixel.c", "sixel" ),
( "video/out/vo_tct.c" ),
( "video/out/vo_vaapi.c", "vaapi-x11 && gpl" ),
+ ( "video/out/vo_vaapi_wayland.c", "vaapi-wayland-memfd" ),
( "video/out/vo_vdpau.c", "vdpau" ),
( "video/out/vo_wlshm.c", "wayland && memfd_create" ),
( "video/out/vo_x11.c" , "x11" ),
@@ -522,6 +535,8 @@ def build(ctx):
( "generated/wayland/presentation-time.c", "wayland" ),
( "generated/wayland/xdg-decoration-unstable-v1.c", "wayland" ),
( "generated/wayland/xdg-shell.c", "wayland" ),
+ ( "generated/wayland/linux-dmabuf-unstable-v1.c", "wayland" ),
+ ( "generated/wayland/viewporter.c", "wayland" ),
( "video/out/wayland_common.c", "wayland" ),
( "video/out/win32/displayconfig.c", "win32-desktop" ),
( "video/out/win32/droptarget.c", "win32-desktop" ),