Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
daed9c2536
!55 [sync] PR-50: Add automake and make buildrequires
From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-03-01 02:46:29 +00:00
lyn1001
cda7c46a1e Add automake and make buildrequires
(cherry picked from commit 44e3c6ff1f54a1a480778faeb344d597b1875b48)
2024-03-01 10:19:41 +08:00
openeuler-ci-bot
b500ae8734
!52 [sync] PR-46: Add DOUBLE-BUFFER extension specification.
From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-03-01 02:17:54 +00:00
zhang-liang-pengkun
de92ed70ad Add DOUBLE-BUFFER extension specification.
Signed-off-by: zhang-liang-pengkun <zhangliangpengkun@xfusion.com>
(cherry picked from commit 62cd99d4f863c4d1dc9aa9ecdc25fbf94b03467a)
2024-03-01 09:59:35 +08:00
openeuler-ci-bot
33cdd1fc46
!13 Modify spec URL
From: @yangbo2022 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2023-01-06 06:49:45 +00:00
yangbo
bdf1458889 Modify spec URL
Signed-off-by: yangbo <yangbo1@xfusion.com>
2023-01-06 14:10:22 +08:00
openeuler-ci-bot
6ac19e3ad3
!7 [sync] PR-5: upgrade to xcb-proto-1.15
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-11-08 10:58:46 +00:00
wangkerong
d61ffb0a3e upgradeto 1.15
(cherry picked from commit c572d06bc501960c2c4a859ba76eb710ac0a5ddb)
2022-11-08 16:52:40 +08:00
openeuler-ci-bot
b974032f81
!3 fixes for python 3.9
Merge pull request !3 from dongyuzhen/openEuler-22.03-LTS-Next
2022-01-08 11:47:30 +00:00
dongyuzhen
9452fa18bd fixes for python 3.9 2022-01-08 12:13:09 +08:00
4 changed files with 208 additions and 5 deletions

View File

@ -0,0 +1,184 @@
From 748b0f0098b4b4754649c01fc81f02deb79e48ef Mon Sep 17 00:00:00 2001
From: Mike Sharov <msharov@users.sourceforge.net>
Date: Thu, 16 Jun 2022 15:29:55 +0000
Subject: [PATCH] Add DOUBLE-BUFFER extension specification.
---
src/Makefile.am | 1 +
src/dbe.xml | 152 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 153 insertions(+)
create mode 100644 src/dbe.xml
diff --git a/src/Makefile.am b/src/Makefile.am
index d81d818..aa10860 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,6 +4,7 @@ xcbinclude_HEADERS = \
bigreq.xml \
composite.xml \
damage.xml \
+ dbe.xml \
dpms.xml \
dri2.xml \
dri3.xml \
diff --git a/src/dbe.xml b/src/dbe.xml
new file mode 100644
index 0000000..8e891f4
--- /dev/null
+++ b/src/dbe.xml
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright (c) 2022 Mike Sharov <msharov@users.sourceforge.net>
+This file is free software, distributed under the license in ../COPYING
+-->
+
+<xcb header="dbe" extension-xname="DOUBLE-BUFFER" extension-name="Dbe"
+ major-version="1" minor-version="0">
+ <import>xproto</import>
+
+ <!-- Types -->
+ <typedef oldname="DRAWABLE" newname="BackBuffer" />
+
+ <enum name="SwapAction">
+ <item name="Undefined"> <value>0</value></item>
+ <item name="Background"><value>1</value></item>
+ <item name="Untouched"> <value>2</value></item>
+ <item name="Copied"> <value>3</value></item>
+ <doc>
+ <description><![CDATA[Specifies what to do with the front buffer after it is swapped with the back buffer.]]></description>
+ <field name="Undefined"><![CDATA[Discard the buffer. The buffer may be reallocated and end up with random VRAM content.]]></field>
+ <field name="Background"><![CDATA[Erase with window background.]]></field>
+ <field name="Untouched"><![CDATA[Leave untouched.]]></field>
+ <field name="Copied"><![CDATA[Copy the newly displayed front buffer.]]></field>
+ </doc>
+ </enum>
+
+ <struct name="SwapInfo">
+ <field type="WINDOW" name="window" />
+ <field type="CARD8" name="swap_action" enum="SwapAction" />
+ <pad bytes="3"/>
+ </struct>
+
+ <struct name="BufferAttributes">
+ <field type="WINDOW" name="window" />
+ </struct>
+
+ <struct name="VisualInfo">
+ <field type="VISUALID" name="visual_id" />
+ <field type="CARD8" name="depth" />
+ <field type="CARD8" name="perf_level" />
+ <pad bytes="2"/>
+ </struct>
+
+ <struct name="VisualInfos">
+ <field type="CARD32" name="n_infos" />
+ <list type="VisualInfo" name="infos">
+ <fieldref>n_infos</fieldref>
+ </list>
+ </struct>
+
+ <!-- Errors -->
+ <error name="BadBuffer" number="0">
+ <field type="BackBuffer" name="bad_buffer" />
+ </error>
+
+ <!-- Requests -->
+ <request name="QueryVersion" opcode="0">
+ <field type="CARD8" name="major_version" />
+ <field type="CARD8" name="minor_version" />
+ <pad bytes="2"/>
+ <reply>
+ <pad bytes="1"/>
+ <field type="CARD8" name="major_version" />
+ <field type="CARD8" name="minor_version" />
+ <pad bytes="22"/>
+ </reply>
+ <doc>
+ <brief>Queries the version of this extension</brief>
+ <description><![CDATA[Queries the version of this extension. You must do this before using any functionality it provides.]]></description>
+ <field name="major_version"><![CDATA[The major version of the extension. Check that it is compatible with the XCB_DBE_MAJOR_VERSION that your code is compiled with.]]></field>
+ <field name="minor_version"><![CDATA[The minor version of the extension. Check that it is compatible with the XCB_DBE_MINOR_VERSION that your code is compiled with.]]></field>
+ </doc>
+ </request>
+
+ <request name="AllocateBackBuffer" opcode="1">
+ <field type="WINDOW" name="window" />
+ <field type="BackBuffer" name="buffer" />
+ <field type="CARD8" name="swap_action" />
+ <pad bytes="3"/>
+ <doc>
+ <brief>Allocates a back buffer</brief>
+ <description><![CDATA[Associates `buffer` with the back buffer of `window`. Multiple ids may be associated with the back buffer, which is created by the first allocate call and destroyed by the last deallocate.]]></description>
+ <field name="window"><![CDATA[The window to which to add the back buffer.]]></field>
+ <field name="buffer"><![CDATA[The buffer id to associate with the back buffer.]]></field>
+ <field name="swap_action"><![CDATA[The swap action most likely to be used to present this back buffer. This is only a hint, and does not preclude the use of other swap actions.]]></field>
+ </doc>
+ </request>
+
+ <request name="DeallocateBackBuffer" opcode="2">
+ <field type="BackBuffer" name="buffer" />
+ <doc>
+ <brief>Deallocates a back buffer</brief>
+ <description><![CDATA[Deallocates the given `buffer`. If `buffer` is an invalid id, a `BadBuffer` error is returned. Because a window may have allocated multiple back buffer ids, the back buffer itself is not deleted until all these ids are deallocated by this call.]]></description>
+ <field name="buffer"><![CDATA[The back buffer to deallocate.]]></field>
+ </doc>
+ </request>
+
+ <request name="SwapBuffers" opcode="3">
+ <field type="CARD32" name="n_actions" />
+ <list type="SwapInfo" name="actions">
+ <fieldref>n_actions</fieldref>
+ </list>
+ <doc>
+ <brief>Swaps front and back buffers</brief>
+ <description><![CDATA[ Swaps the front and back buffers on the specified windows. The front and back buffers retain their ids, so that the window id continues to refer to the front buffer, while the back buffer id created by this extension continues to refer to the back buffer. Back buffer contents is moved to the front buffer. Back buffer contents after the operation depends on the given swap action. The optimal swap action depends on how each frame is rendered. For example, if the buffer is cleared and fully overwritten on every frame, the "untouched" action, which throws away the buffer contents, would provide the best performance. To eliminate visual artifacts, the swap will occure during the monitor VSync, if the X server supports detecting it.]]></description>
+ <field name="n_actions"><![CDATA[Number of swap actions in `actions`.]]></field>
+ <field name="actions"><![CDATA[List of windows on which to swap buffers.]]></field>
+ </doc>
+ </request>
+
+ <request name="BeginIdiom" opcode="4">
+ <doc>
+ <brief>Begins a logical swap block</brief>
+ <description><![CDATA[ Creates a block of operations intended to occur together. This may be needed if window presentation requires changing buffers unknown to this extension, such as depth or stencil buffers.]]></description>
+ </doc>
+ </request>
+ <request name="EndIdiom" opcode="5">
+ <doc><brief>Ends a logical swap block</brief></doc>
+ </request>
+
+ <request name="GetVisualInfo" opcode="6">
+ <field type="CARD32" name="n_drawables" />
+ <list type="DRAWABLE" name="drawables">
+ <fieldref>n_drawables</fieldref>
+ </list>
+ <reply>
+ <pad bytes="1"/>
+ <field type="CARD32" name="n_supported_visuals" />
+ <pad bytes="20"/>
+ <list type="VisualInfos" name="supported_visuals">
+ <fieldref>n_supported_visuals</fieldref>
+ </list>
+ </reply>
+ <doc><brief>Requests visuals that support double buffering</brief></doc>
+ </request>
+
+ <request name="GetBackBufferAttributes" opcode="7">
+ <field type="BackBuffer" name="buffer" />
+ <reply>
+ <pad bytes="1"/>
+ <field type="BufferAttributes" name="attributes" />
+ <pad bytes="20"/>
+ </reply>
+ <doc>
+ <brief>Gets back buffer attributes</brief>
+ <description><![CDATA[Returns the attributes of the specified `buffer`.]]></description>
+ <field name="buffer"><![CDATA[The back buffer to query.]]></field>
+ <field name="attributes"><![CDATA[The attributes of `buffer`.]]></field>
+ </doc>
+ </request>
+</xcb>
--
2.39.0.windows.2

Binary file not shown.

BIN
xcb-proto-1.15.tar.gz Normal file

Binary file not shown.

View File

@ -1,14 +1,16 @@
%define debug_package %{nil}
Name: xcb-proto
Version: 1.14
Release: 1
Version: 1.15
Release: 4
Summary: XCB protocol descriptions
License: MIT
URL: https://xcb.freedesktop.org/
URL: https://gitlab.freedesktop.org/xorg/proto/xcbproto/
Source0: https://xcb.freedesktop.org/dist/%{name}-%{version}.tar.gz
Patch01: 0001-Add-DOUBLE-BUFFER-extension-specification.patch
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-devel make automake
Requires: pkgconfig
%description
@ -20,7 +22,6 @@ to the protocol, improved threading support, and extensibility.
%autosetup -n %{name}-%{version} -p1
%build
export PYTHON="python3"
%configure --libdir=%{_datadir}
%make_build
@ -36,6 +37,24 @@ export PYTHON="python3"
%{python3_sitelib}/xcbgen
%changelog
* Fri Mar 1 2024 liyanan <liyanan61@h-partners.com> - 1.15-4
- Add automake and make buildrequires
* Tue Dec 26 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 1.15-3
- Add DOUBLE-BUFFER extension specification.
* Fri Jan 6 2023 yangbo <yangbo1@xfusion.com> - 1.15-2
- Modify spec URL
* Thu Oct 27 2022 wangkerong <wangkerong@h-partners.com> - 1.15-1
- upgrade to 1.15
* Sat Jan 08 2022 dongyuzhen <dongyuzhen@huawei.com> - 1.14-2
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fixes for python 3.9
* Mon Jul 27 2020 chxssg<chxssg@qq.com> - 1.14-1
- update package to 1.14