From de53d564aa6a66c9310b3be1a7762ea1b2672d6d Mon Sep 17 00:00:00 2001 From: yangbo Date: Fri, 6 Jan 2023 09:13:24 +0800 Subject: [PATCH] Document the MIT-SHM extension Signed-off-by: yangbo --- ...-0001-Document-the-MIT-SHM-extension.patch | 295 ++++++++++++++++++ xcb-proto.spec | 7 +- 2 files changed, 301 insertions(+), 1 deletion(-) create mode 100644 backport-0001-Document-the-MIT-SHM-extension.patch diff --git a/backport-0001-Document-the-MIT-SHM-extension.patch b/backport-0001-Document-the-MIT-SHM-extension.patch new file mode 100644 index 0000000..e273de9 --- /dev/null +++ b/backport-0001-Document-the-MIT-SHM-extension.patch @@ -0,0 +1,295 @@ +From 0fc6197034c49d9fdf5607cae201f1ac3270e7de Mon Sep 17 00:00:00 2001 +From: Demi Marie Obenour +Date: Sun, 3 Jul 2022 18:01:40 -0400 +Subject: [PATCH] Document the MIT-SHM extension + +This adds documentation for the entire MIT-SHM extension. + +Signed-off-by: Demi Marie Obenour +--- + src/shm.xml | 214 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 214 insertions(+) + +diff --git a/src/shm.xml b/src/shm.xml +index c2605da..41fb1c1 100644 +--- a/src/shm.xml ++++ b/src/shm.xml +@@ -39,6 +39,29 @@ authorization from the authors. + + + ++ ++ Report that an XCB_SHM_PUT_IMAGE request has completed ++ ++ ++ ++ ++ ++ ++ + + + +@@ -52,7 +75,39 @@ authorization from the authors. + + + ++ ++ The version of the MIT-SHM extension supported by the server ++ ++ ++ ++ ++ The UID of the server. ++ The GID of the server. ++ + ++ ++ Query the version of the MIT-SHM extension. ++ ++ + + + +@@ -60,10 +115,36 @@ authorization from the authors. + + + ++ ++ Attach a System V shared memory segment. ++ ++ ++ ++ ++ + + + + ++ ++ Destroys the specified shared memory segment. ++ ++ The segment to be destroyed. ++ + + + +@@ -83,6 +164,49 @@ authorization from the authors. + + + ++ ++ Copy data from the shared memory to the specified drawable. ++ ++ The drawable to draw to. ++ The graphics context to use. ++ The total width of the source image. ++ The total height of the source image. ++ The source X coordinate of the sub-image to copy. ++ The source Y coordinate of the sub-image to copy. ++ ++ ++ ++ ++ The depth to use. ++ ++ ++ The offset that the source image starts at. ++ + + + +@@ -100,7 +224,33 @@ authorization from the authors. + + + ++ ++ Indicates the result of the copy. ++ ++ The depth of the source drawable. ++ The visual ID of the source drawable. ++ The number of bytes copied. ++ + ++ ++ Copies data from the specified drawable to the shared memory segment. ++ ++ The drawable to copy the image out of. ++ The X coordinate in the drawable to begin copying at. ++ The Y coordinate in the drawable to begin copying at. ++ The width of the image to copy. ++ The height of the image to copy. ++ A mask that determines which planes are used. ++ The format to use for the copy (???). ++ The destination shared memory segment. ++ The offset in the shared memory segment to copy data to. ++ + + + +@@ -112,6 +262,31 @@ authorization from the authors. + + + ++ ++ Create a pixmap backed by shared memory. ++ ++Create a pixmap backed by shared memory. Writes to the shared memory will be ++reflected in the contents of the pixmap, and writes to the pixmap will be ++reflected in the contents of the shared memory. ++ ++ A pixmap ID created with xcb_generate_id(). ++ The drawable to create the pixmap in. ++ ++ ++ ++ ++ ++ + + + +@@ -119,6 +294,21 @@ authorization from the authors. + + + ++ ++ Create a shared memory segment ++ ++ ++ The file descriptor the server should mmap(). ++ ++ + + + +@@ -130,6 +320,30 @@ authorization from the authors. + + + ++ ++ The returned file descriptor. ++ ++ ++ + ++ ++ Asks the server to allocate a shared memory segment. ++ ++ ++ The size of the segment to create. ++ ++ + + +-- +2.39.0.windows.2 + diff --git a/xcb-proto.spec b/xcb-proto.spec index 9535e28..1e2ba01 100644 --- a/xcb-proto.spec +++ b/xcb-proto.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: xcb-proto Version: 1.15 -Release: 1 +Release: 2 Summary: XCB protocol descriptions License: MIT URL: https://xcb.freedesktop.org/ @@ -12,6 +12,8 @@ BuildArch: noarch BuildRequires: python3-devel Requires: pkgconfig +Patch0001: backport-0001-Document-the-MIT-SHM-extension.patch + %description The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a small footprint, latency hiding, direct access @@ -36,6 +38,9 @@ to the protocol, improved threading support, and extensibility. %{python3_sitelib}/xcbgen %changelog +* Fri Jan 6 2023 yangbo - 1.15-2 +- Document the MIT-SHM extension + * Thu Oct 27 2022 wangkerong - 1.15-1 - upgrade to 1.15 -- Gitee