summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/wayland
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2020-01-16 11:27:08 -0600
committerOtavio Salvador <otavio@ossystems.com.br>2020-02-12 23:51:44 -0300
commit0b389774018aba7938cee7a76a5e6d604b208122 (patch)
tree9e0ed15af5905add60e18ffab2d89d0a14f461b0 /recipes-graphics/wayland
parent8413aafd59df1577b594e3553b767f165bb80b5e (diff)
downloadmeta-freescale-0b389774018aba7938cee7a76a5e6d604b208122.tar.gz
wayland-protocols: Switch to i.MX fork for source
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'recipes-graphics/wayland')
-rw-r--r--recipes-graphics/wayland/wayland-protocols/0001-linux-dmabuf-support-passing-buffer-DTRC-meta-to-com.patch49
-rw-r--r--recipes-graphics/wayland/wayland-protocols/0001-unstable-Add-alpha-compositing-protocol.patch195
-rw-r--r--recipes-graphics/wayland/wayland-protocols/0002-unstable-Add-hdr10-metadata-protocol.patch134
-rw-r--r--recipes-graphics/wayland/wayland-protocols_1.17.imx.bb14
4 files changed, 3 insertions, 389 deletions
diff --git a/recipes-graphics/wayland/wayland-protocols/0001-linux-dmabuf-support-passing-buffer-DTRC-meta-to-com.patch b/recipes-graphics/wayland/wayland-protocols/0001-linux-dmabuf-support-passing-buffer-DTRC-meta-to-com.patch
deleted file mode 100644
index 16aabec8..00000000
--- a/recipes-graphics/wayland/wayland-protocols/0001-linux-dmabuf-support-passing-buffer-DTRC-meta-to-com.patch
+++ /dev/null
@@ -1,49 +0,0 @@
1From 50ea8fbdd1b768ccaa33dfee43b0f12245ef09b8 Mon Sep 17 00:00:00 2001
2From: Haihua Hu <jared.hu@nxp.com>
3Date: Wed, 5 Sep 2018 13:00:47 +0800
4Subject: [PATCH] linux-dmabuf: support passing buffer DTRC meta to compositor
5
6DTRC meta is untilized to pass offset to DTRC in drm dcss driver
7to enable video tile compress
8
9Signed-off-by: Haihua Hu <jared.hu@nxp.com>
10---
11 unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml | 22 ++++++++++++++++++++++
12 1 file changed, 22 insertions(+)
13
14diff --git a/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml b/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
15index 154afe2..9c955c7 100644
16--- a/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
17+++ b/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
18@@ -343,6 +343,28 @@
19 <arg name="flags" type="uint" summary="see enum flags"/>
20 </request>
21
22+ <request name="add_dtrc_meta">
23+ <description summary="add dtrc meta in this dmabuf">
24+ This request adds one dmabuf to the set in this
25+ zwp_linux_buffer_params_v1.
26+
27+ The 64-bit unsigned value combined from modifier_hi and modifier_lo
28+ is the dmabuf layout modifier. DRM AddFB2 ioctl calls this the
29+ fb modifier, which is defined in drm_mode.h of Linux UAPI.
30+ This is an opaque token. Drivers use this token to express tiling,
31+ compression, etc. driver-specific modifications to the base format
32+ defined by the DRM fourcc code.
33+
34+ This request raises the PLANE_IDX error if plane_idx is too large.
35+ The error PLANE_SET is raised if attempting to set a plane that
36+ was already set.
37+ </description>
38+ <arg name="rfc_chroma_offset" type="uint"
39+ summary="high 32 bits of DTRC offset"/>
40+ <arg name="rfc_luma_offset" type="uint"
41+ summary="low 32 bits of DTRC offset"/>
42+ </request>
43+
44 </interface>
45
46 </protocol>
47--
482.7.4
49
diff --git a/recipes-graphics/wayland/wayland-protocols/0001-unstable-Add-alpha-compositing-protocol.patch b/recipes-graphics/wayland/wayland-protocols/0001-unstable-Add-alpha-compositing-protocol.patch
deleted file mode 100644
index 55f4cb8f..00000000
--- a/recipes-graphics/wayland/wayland-protocols/0001-unstable-Add-alpha-compositing-protocol.patch
+++ /dev/null
@@ -1,195 +0,0 @@
1From b4be5e338be2301f83f4dfdc0cbb740f0a783464 Mon Sep 17 00:00:00 2001
2From: Haihua Hu <jared.hu@nxp.com>
3Date: Thu, 14 Jun 2018 13:54:08 +0800
4Subject: [PATCH 1/2] unstable: Add alpha-compositing protocol
5
6It's based on the Chromium Wayland protocol of the same name ([1])
7and Alexandros's modified version ([2])with a few changes
8made to the blending_equation enumeration.
9
10Add one more blending_equation "src_alpha / src_alpha"
11
12[1] https://chromium.googlesource.com/chromium/src/+/master/third_party/wayland-protocols/unstable/alpha-compositing/alpha-compositing-unstable-v1.xml
13[2] https://lists.freedesktop.org/archives/wayland-devel/2017-August/034741.html
14
15Upstream-Status: Inappropriate [i.MX specific]
16
17Signed-off-by: Haihua Hu <jared.hu@nxp.com>
18---
19 Makefile.am | 1 +
20 unstable/alpha-compositing/README | 6 +
21 .../alpha-compositing-unstable-v1.xml | 136 +++++++++++++++++++++
22 3 files changed, 143 insertions(+)
23 create mode 100644 unstable/alpha-compositing/README
24 create mode 100644 unstable/alpha-compositing/alpha-compositing-unstable-v1.xml
25
26diff --git a/Makefile.am b/Makefile.am
27index 4b9a901..e6c44ec 100644
28--- a/Makefile.am
29+++ b/Makefile.am
30@@ -23,6 +23,7 @@ unstable_protocols = \
31 unstable/xdg-decoration/xdg-decoration-unstable-v1.xml \
32 unstable/linux-explicit-synchronization/linux-explicit-synchronization-unstable-v1.xml \
33 unstable/primary-selection/primary-selection-unstable-v1.xml \
34+ unstable/alpha-compositing/alpha-compositing-unstable-v1.xml \
35 $(NULL)
36
37 stable_protocols = \
38diff --git a/unstable/alpha-compositing/README b/unstable/alpha-compositing/README
39new file mode 100644
40index 0000000..d874156
41--- /dev/null
42+++ b/unstable/alpha-compositing/README
43@@ -0,0 +1,6 @@
44+Alpha compositing protocol
45+
46+Maintainers:
47+David Reveman <reveman at chromium.org>
48+Alexandros Frantzis <alexandros.frantzis at collabora.com>
49+Jared Hu <Jared Hu at nxp.com>
50diff --git a/unstable/alpha-compositing/alpha-compositing-unstable-v1.xml b/unstable/alpha-compositing/alpha-compositing-unstable-v1.xml
51new file mode 100644
52index 0000000..0844b3f
53--- /dev/null
54+++ b/unstable/alpha-compositing/alpha-compositing-unstable-v1.xml
55@@ -0,0 +1,136 @@
56+<?xml version="1.0" encoding="UTF-8"?>
57+<protocol name="alpha_compositing_unstable_v1">
58+
59+ <copyright>
60+ Copyright 2016 The Chromium Authors.
61+ Copyright 2017 Collabora Ltd
62+ Copyright 2018 NXP
63+
64+ Permission is hereby granted, free of charge, to any person obtaining a
65+ copy of this software and associated documentation files (the "Software"),
66+ to deal in the Software without restriction, including without limitation
67+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
68+ and/or sell copies of the Software, and to permit persons to whom the
69+ Software is furnished to do so, subject to the following conditions:
70+
71+ The above copyright notice and this permission notice (including the next
72+ paragraph) shall be included in all copies or substantial portions of the
73+ Software.
74+
75+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
76+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
77+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
78+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
79+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
80+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
81+ DEALINGS IN THE SOFTWARE.
82+ </copyright>
83+
84+ <description summary="Protocol for more advanced compositing and blending">
85+ This protocol specifies a set of interfaces used to control the alpha
86+ compositing and blending of surface contents.
87+
88+ Warning! The protocol described in this file is experimental and backward
89+ incompatible changes may be made. Backward compatible changes may be added
90+ together with the corresponding interface version bump. Backward
91+ incompatible changes are done by bumping the version number in the protocol
92+ and interface names and resetting the interface version. Once the protocol
93+ is to be declared stable, the 'z' prefix and the version number in the
94+ protocol and interface names are removed and the interface version number is
95+ reset.
96+ </description>
97+
98+ <interface name="zwp_alpha_compositing_v1" version="1">
99+ <description summary="alpha_compositing">
100+ The global interface exposing compositing and blending capabilities is
101+ used to instantiate an interface extension for a wl_surface object.
102+ This extended interface will then allow the client to specify the
103+ blending equation and alpha value used for compositing the wl_surface.
104+ </description>
105+
106+ <request name="destroy" type="destructor">
107+ <description summary="unbind from the blending interface">
108+ Informs the server that the client will not be using this
109+ protocol object anymore. This does not affect any other objects,
110+ blending objects included.
111+ </description>
112+ </request>
113+
114+ <enum name="error">
115+ <entry name="blending_exists" value="0"
116+ summary="the surface already has a blending object associated"/>
117+ </enum>
118+
119+ <request name="get_blending">
120+ <description summary="extend surface interface for blending">
121+ Instantiate an interface extension for the given wl_surface to
122+ provide surface blending. If the given wl_surface already has
123+ a blending object associated, the blending_exists protocol error
124+ is raised.
125+ </description>
126+
127+ <arg name="id" type="new_id" interface="zwp_blending_v1"
128+ summary="the new blending interface id"/>
129+ <arg name="surface" type="object" interface="wl_surface"
130+ summary="the surface"/>
131+ </request>
132+ </interface>
133+
134+ <interface name="zwp_blending_v1" version="1">
135+ <description summary="blending interface to a wl_surface">
136+ An additional interface to a wl_surface object, which allows the
137+ client to specify the blending equation used for compositing and
138+ an alpha value applied to the whole surface.
139+
140+ When the blending object is created its blending equation is
141+ 'none' and its alpha is 1.0, i.e., it's inactive by default. Clients
142+ can activate it by setting the blending equation and alpha value.
143+
144+ If the wl_surface associated with the blending object is destroyed,
145+ the blending object becomes inert.
146+
147+ If the blending object is destroyed, the blending state is removed
148+ from the wl_surface. The change will be applied on the next
149+ wl_surface.commit.
150+ </description>
151+
152+ <request name="destroy" type="destructor">
153+ <description summary="remove blending from the surface">
154+ The associated wl_surface's blending state is removed.
155+ The change is applied on the next wl_surface.commit.
156+ </description>
157+ </request>
158+
159+ <enum name="blending_equation">
160+ <description summary="different blending equations for compositing">
161+ Blending equations that can be used when compositing a surface.
162+ </description>
163+ <entry name="none" value="0" summary="blending object is inactive"/>
164+ <entry name="opaque" value="1" summary="(one, zero)"/>
165+ <entry name="premultiplied" value="2" summary="(one, one_minus_src_alpha)"/>
166+ <entry name="straight" value="3" summary="(src_alpha, one_minus_src_alpha)" />
167+ <entry name="fromsource" value="4" summary="(src_alpha, src_alpha)" />
168+ </enum>
169+
170+ <request name="set_blending">
171+ <description summary="set the blending equation">
172+ Set the blending equation for compositing the wl_surface.
173+
174+ The blending equation state is double-buffered state,
175+ and will be applied on the next wl_surface.commit.
176+ </description>
177+ <arg name="equation" type="uint" summary="the new blending equation"/>
178+ </request>
179+
180+ <request name="set_alpha">
181+ <description summary="set the alpha value">
182+ Set the alpha value applied to the whole surface for compositing.
183+
184+ The alpha value state is double-buffered state,
185+ and will be applied on the next wl_surface.commit.
186+ </description>
187+ <arg name="value" type="fixed" summary="the new alpha value"/>
188+ </request>
189+ </interface>
190+
191+</protocol>
192\ No newline at end of file
193--
1942.7.4
195
diff --git a/recipes-graphics/wayland/wayland-protocols/0002-unstable-Add-hdr10-metadata-protocol.patch b/recipes-graphics/wayland/wayland-protocols/0002-unstable-Add-hdr10-metadata-protocol.patch
deleted file mode 100644
index 01cac46e..00000000
--- a/recipes-graphics/wayland/wayland-protocols/0002-unstable-Add-hdr10-metadata-protocol.patch
+++ /dev/null
@@ -1,134 +0,0 @@
1From 54e847c10a75ec7bd6fbb8fbdd700d085145cdce Mon Sep 17 00:00:00 2001
2From: Haihua Hu <jared.hu@nxp.com>
3Date: Tue, 26 Jun 2018 15:30:18 +0800
4Subject: [PATCH 2/2] unstable: Add hdr10-metadata protocol
5
6this protocol is used to support hdr10 video playback.
7HDR10 metadata is passed to compositor via this interface
8
9Upstream-Status: Inappropriate [i.MX specific]
10
11Signed-off-by: Haihua Hu <jared.hu@nxp.com>
12---
13 Makefile.am | 1 +
14 unstable/hdr10-metadata/README | 4 ++
15 .../hdr10-metadata/hdr10-metadata-unstable-v1.xml | 84 ++++++++++++++++++++++
16 3 files changed, 89 insertions(+)
17 create mode 100644 unstable/hdr10-metadata/README
18 create mode 100644 unstable/hdr10-metadata/hdr10-metadata-unstable-v1.xml
19
20diff --git a/Makefile.am b/Makefile.am
21index e6c44ec..b8206c7 100644
22--- a/Makefile.am
23+++ b/Makefile.am
24@@ -24,6 +24,7 @@ unstable_protocols = \
25 unstable/linux-explicit-synchronization/linux-explicit-synchronization-unstable-v1.xml \
26 unstable/primary-selection/primary-selection-unstable-v1.xml \
27 unstable/alpha-compositing/alpha-compositing-unstable-v1.xml \
28+ unstable/hdr10-metadata/hdr10-metadata-unstable-v1.xml \
29 $(NULL)
30
31 stable_protocols = \
32diff --git a/unstable/hdr10-metadata/README b/unstable/hdr10-metadata/README
33new file mode 100644
34index 0000000..58a82f8
35--- /dev/null
36+++ b/unstable/hdr10-metadata/README
37@@ -0,0 +1,4 @@
38+hdr10 metadata protocol
39+
40+Maintainers:
41+Jared Hu <Jared Hu at nxp.com>
42diff --git a/unstable/hdr10-metadata/hdr10-metadata-unstable-v1.xml b/unstable/hdr10-metadata/hdr10-metadata-unstable-v1.xml
43new file mode 100644
44index 0000000..5b1bac4
45--- /dev/null
46+++ b/unstable/hdr10-metadata/hdr10-metadata-unstable-v1.xml
47@@ -0,0 +1,84 @@
48+<?xml version="1.0" encoding="UTF-8"?>
49+<protocol name="hdr10_metadata_unstable_v1">
50+
51+ <copyright>
52+ Copyright 2018 NXP
53+
54+ Permission is hereby granted, free of charge, to any person obtaining a
55+ copy of this software and associated documentation files (the "Software"),
56+ to deal in the Software without restriction, including without limitation
57+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
58+ and/or sell copies of the Software, and to permit persons to whom the
59+ Software is furnished to do so, subject to the following conditions:
60+
61+ The above copyright notice and this permission notice (including the next
62+ paragraph) shall be included in all copies or substantial portions of the
63+ Software.
64+
65+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
66+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
67+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
68+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
69+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
70+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
71+ DEALINGS IN THE SOFTWARE.
72+ </copyright>
73+
74+ <description summary="Protocol for sending hdr10 metadata to compositor">
75+ This protocol specifies a set of interfaces used to set and control
76+ hdr10 metadata of video contents.
77+
78+ Warning! The protocol described in this file is experimental and backward
79+ incompatible changes may be made. Backward compatible changes may be added
80+ together with the corresponding interface version bump. Backward
81+ incompatible changes are done by bumping the version number in the protocol
82+ and interface names and resetting the interface version. Once the protocol
83+ is to be declared stable, the 'z' prefix and the version number in the
84+ protocol and interface names are removed and the interface version number is
85+ reset.
86+ </description>
87+
88+ <interface name="zwp_hdr10_metadata_v1" version="1">
89+ <description summary="hdr10_metadata">
90+ The global interface exposing hdr10 metadata capabilities is
91+ used to instantiate an interface extension for compositor.
92+ This extended interface will then allow the client to pass hdr10 metadata
93+ to compositor and send to display driver if supported.
94+ </description>
95+
96+ <request name="destroy" type="destructor">
97+ <description summary="unbind from the hdr10 metadata interface">
98+ Informs the server that the client will not be using this
99+ protocol object anymore. This does not affect any other objects.
100+ </description>
101+ </request>
102+
103+ <enum name="error">
104+ <entry name="sending_meta_error" value="0"
105+ summary="error occurs when compositor handle metadata"/>
106+ </enum>
107+
108+ <request name="set_metadata">
109+ <description summary="interface of setting and controling hdr10 metadata">
110+ client can use this interface pass hdr10 metadata to server. Server need
111+ use the recived metadata to enable hdr mode.
112+ </description>
113+
114+ <arg name="eotf" type="uint" summary="supported eotf"/>
115+ <arg name="type" type="uint" summary="supported type"/>
116+ <arg name="display_primaries_red" type="uint"
117+ summary="display primaries of red, high 16bits for x, and low 16bits for y"/>
118+ <arg name="display_primaries_green" type="uint"
119+ summary="display primaries of green, high 16bits for x, and low 16bits for y"/>
120+ <arg name="display_primaries_blue" type="uint"
121+ summary="display primaries of blue, high 16bits for x, and low 16bits for y"/>
122+ <arg name="white_point" type="uint"
123+ summary="white point, high 16bits for x, and low 16bits for blue"/>
124+ <arg name="mastering_display_luminance" type="uint"
125+ summary="max and min mastering display luminance, high 16 bits for max, and low 16 bits for min"/>
126+ <arg name="max_cll" type="uint" summary="max content light level"/>
127+ <arg name="max_fall" type="uint" summary="max frame average light level"/>
128+ </request>
129+ </interface>
130+
131+</protocol>
132--
1332.7.4
134
diff --git a/recipes-graphics/wayland/wayland-protocols_1.17.imx.bb b/recipes-graphics/wayland/wayland-protocols_1.17.imx.bb
index 069bbea0..0c82c84d 100644
--- a/recipes-graphics/wayland/wayland-protocols_1.17.imx.bb
+++ b/recipes-graphics/wayland/wayland-protocols_1.17.imx.bb
@@ -9,17 +9,9 @@ LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://COPYING;md5=c7b12b6702da38ca028ace54aae3d484 \ 9LIC_FILES_CHKSUM = "file://COPYING;md5=c7b12b6702da38ca028ace54aae3d484 \
10 file://stable/presentation-time/presentation-time.xml;endline=26;md5=4646cd7d9edc9fa55db941f2d3a7dc53" 10 file://stable/presentation-time/presentation-time.xml;endline=26;md5=4646cd7d9edc9fa55db941f2d3a7dc53"
11 11
12ARCHIVE_NAME = "${BPN}-1.17" 12SRC_URI = "git://source.codeaurora.org/external/imx/wayland-protocols-imx.git;protocol=https;branch=wayland-protocols-imx-1.17"
13SRC_URI = "https://wayland.freedesktop.org/releases/${ARCHIVE_NAME}.tar.xz \ 13SRCREV = "50ea8fbdd1b768ccaa33dfee43b0f12245ef09b8"
14 file://0001-unstable-Add-alpha-compositing-protocol.patch \ 14S = "${WORKDIR}/git"
15 file://0002-unstable-Add-hdr10-metadata-protocol.patch \
16 file://0001-linux-dmabuf-support-passing-buffer-DTRC-meta-to-com.patch \
17 "
18SRC_URI[md5sum] = "55ddd5fdb02b73b9de9559aaec267315"
19SRC_URI[sha256sum] = "df1319cf9705643aea9fd16f9056f4e5b2471bd10c0cc3713d4a4cdc23d6812f"
20S = "${WORKDIR}/${ARCHIVE_NAME}"
21
22UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html"
23 15
24inherit autotools pkgconfig 16inherit autotools pkgconfig
25 17