summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorLaserEyess <lasereyess@users.noreply.github.com>2022-11-15 20:52:56 -0500
committerDudemanguy <random342@airmail.cc>2022-11-20 19:13:59 +0000
commita62f71bfbeb8f35bf5f09f12e48b63505c475750 (patch)
tree019ec5e071e6ca90214f6f3623037eb2b540a696 /wscript_build.py
parent303178e6451da7072aa71ce5e3cbffc233d6dbd1 (diff)
downloadmpv-a62f71bfbeb8f35bf5f09f12e48b63505c475750.tar.bz2
mpv-a62f71bfbeb8f35bf5f09f12e48b63505c475750.tar.xz
vo_dmabuf_wayland: use single-pixel-buffer-v1
The new single-pixel-buffer protocol is designed to optimize the case for using a solid color as an underlay wl_surface. It works the same as the wl_shm 1x1 pixel trick currently used, but it allows the compositor to make optimizations with more certainty than the wl_shm trick.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 1621b94b97..46138982be 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -147,6 +147,12 @@ def build(ctx):
ctx.wayland_protocol_header(proto_dir = ctx.env.WL_PROTO_DIR,
protocol = "staging/content-type/content-type-v1",
target = "generated/wayland/content-type-v1.h")
+ ctx.wayland_protocol_code(proto_dir = ctx.env.WL_PROTO_DIR,
+ protocol = "staging/single-pixel-buffer/single-pixel-buffer-v1",
+ target = "generated/wayland/single-pixel-buffer-v1.c")
+ ctx.wayland_protocol_header(proto_dir = ctx.env.WL_PROTO_DIR,
+ protocol = "staging/single-pixel-buffer/single-pixel-buffer-v1",
+ target = "generated/wayland/single-pixel-buffer-v1.h")
ctx(features = "ebml_header", target = "generated/ebml_types.h")
ctx(features = "ebml_definitions", target = "generated/ebml_defs.inc")
@@ -548,6 +554,7 @@ def build(ctx):
( "video/out/vulkan/context_xlib.c", "vulkan && x11" ),
( "video/out/vulkan/utils.c", "vulkan" ),
( "video/out/w32_common.c", "win32-desktop" ),
+ ( "generated/wayland/single-pixel-buffer-v1.c", "wayland-protocols-1-27" ),
( "generated/wayland/content-type-v1.c", "wayland-protocols-1-27" ),
( "generated/wayland/idle-inhibit-unstable-v1.c", "wayland" ),
( "generated/wayland/presentation-time.c", "wayland" ),