Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
ebe57c990e
!6 【轻量级 PR】:rebuild for next release
From: @kerongw 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2022-10-26 11:57:24 +00:00
kerongw
bf7bfa0a75
rebuild for next release
Signed-off-by: kerongw <wangkerong@h-partners.com>
2022-10-26 03:35:28 +00:00
openeuler-ci-bot
9d13cff62f !4 Fix-link-failure-with-gcc-10
From: @yangcheng1203
Reviewed-by: @zzm_567,@yanan-rock
Signed-off-by: @yanan-rock
2021-07-30 07:42:08 +00:00
yangcheng1203
2d697d7cb5 Fix-link-failure-with-gcc-10 2021-07-30 15:09:35 +08:00
openeuler-ci-bot
9c8a38e8b0 !3 add yaml file in package
Merge pull request !3 from gaoch_100/master
2020-07-21 11:20:17 +08:00
gaochao_100
e2c5ab7c8d add yaml file in package 2020-06-16 14:17:42 +08:00
openeuler-ci-bot
b557abf27b !2 enable make check
Merge pull request !2 from t.feng/master
2020-03-13 21:55:06 +08:00
t_feng
f0fe3f7cd4 enable make check 2020-03-13 21:28:02 +08:00
openeuler-ci-bot
8a601b2997 !1 optimization the spec
Merge pull request !1 from huzunhao/master
2020-01-11 18:21:28 +08:00
songnannan
2f2006cc68 optimization the spec 2020-01-09 15:07:15 +08:00
6 changed files with 57 additions and 62 deletions

View File

@ -1,58 +0,0 @@
From f758908db4e71406e5d437d32e43aabd38a63504 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daenzer@amd.com>
Date: Thu, 9 May 2019 12:35:37 +0200
Subject: [PATCH xf86-video-ati] dri3: Always flush glamor before sharing
pixmap storage with clients
Even if glamor_gbm_bo_from_pixmap / glamor_fd_from_pixmap themselves
don't trigger any drawing, there could already be unflushed drawing to
the pixmap whose storage we share with a client.
(Ported from amdgpu commit 4b17533fcb30842caf0035ba593b7d986520cc85)
Acked-by: Alex Deucher <alexander.deucher@amd.com>
---
src/radeon_dri3.c | 26 +++++---------------------
1 file changed, 5 insertions(+), 21 deletions(-)
diff --git a/src/radeon_dri3.c b/src/radeon_dri3.c
index 73353bf5..f8f91c4b 100644
--- a/src/radeon_dri3.c
+++ b/src/radeon_dri3.c
@@ -220,29 +220,13 @@ static int radeon_dri3_fd_from_pixmap(ScreenPtr screen,
RADEONInfoPtr info = RADEONPTR(scrn);
if (info->use_glamor) {
- Bool need_flush = TRUE;
- int ret = -1;
-#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,19,99,904,0)
- struct gbm_bo *gbm_bo = glamor_gbm_bo_from_pixmap(screen, pixmap);
+ int ret = glamor_fd_from_pixmap(screen, pixmap, stride, size);
- if (gbm_bo) {
- ret = gbm_bo_get_fd(gbm_bo);
- gbm_bo_destroy(gbm_bo);
-
- if (ret >= 0)
- need_flush = FALSE;
- }
-#endif
-
- if (ret < 0)
- ret = glamor_fd_from_pixmap(screen, pixmap, stride, size);
-
- /* glamor might have needed to reallocate the pixmap storage and
- * copy the pixmap contents to the new storage. The copy
- * operation needs to be flushed to the kernel driver before the
- * client starts using the pixmap storage for direct rendering.
+ /* Any pending drawing operations need to be flushed to the
+ * kernel driver before the client starts using the pixmap
+ * storage for direct rendering.
*/
- if (ret >= 0 && need_flush)
+ if (ret >= 0)
radeon_cs_flush_indirect(scrn);
return ret;
--
2.21.0

View File

@ -0,0 +1,28 @@
From edcbe5f52ddfceee3d66d69bbcebbceac06b6d0d Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Tue, 4 Feb 2020 16:38:06 -0500
Subject: [PATCH xf86-video-amdgpu] Fix link failure with gcc 10
Without the 'extern' this looks like a definition not just a
declaration, in every file that includes the header. gcc 10 is stricter
about this kind of multiple definition.
---
src/drmmode_display.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index 96eaef0..8cd8a0a 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -262,7 +262,7 @@ Bool drmmode_wait_vblank(xf86CrtcPtr crtc, drmVBlankSeqType type,
uint64_t *ust, uint32_t *result_seq);
-miPointerSpriteFuncRec drmmode_sprite_funcs;
+extern miPointerSpriteFuncRec drmmode_sprite_funcs;
#endif
--
1.8.3.1

Binary file not shown.

Binary file not shown.

View File

@ -3,14 +3,14 @@
%undefine _hardened_build %undefine _hardened_build
Name: xorg-x11-drv-ati Name: xorg-x11-drv-ati
Version: 19.0.1 Version: 19.1.0
Release: 2 Release: 4
Summary: Xorg X11 ati video driver Summary: Xorg X11 ati video driver
License: MIT License: MIT
URL: https://www.x.org URL: https://www.x.org
Source0: https://www.x.org/pub/individual/driver/xf86-video-ati-%{version}.tar.bz2 Source0: https://www.x.org/pub/individual/driver/xf86-video-ati-%{version}.tar.bz2
Patch1: 0001-dri3-Always-flush-glamor-before-sharing-pixmap-stora.patch
Patch6000: backport-Fix-link-failure-with-gcc-10.patch
BuildRequires: pkgconfig(gbm) >= 10.6 libdrm-devel kernel-headers BuildRequires: pkgconfig(gbm) >= 10.6 libdrm-devel kernel-headers
BuildRequires: automake autoconf libtool pkgconfig xorg-x11-util-macros BuildRequires: automake autoconf libtool pkgconfig xorg-x11-util-macros
@ -31,6 +31,9 @@ autoreconf -iv
%configure --enable-glamor %configure --enable-glamor
%make_build %make_build
%check
make check
%install %install
%make_install %make_install
%delete_la %delete_la
@ -48,6 +51,24 @@ autoreconf -iv
%{_mandir}/man4/*.4* %{_mandir}/man4/*.4*
%changelog %changelog
* Tue Oct 25 2022 wangkerong <wangkerong@h-partners.com> - 19.1.0-4
- rebuild for next release
* Fri Jul 30 2021 yangcheng <yangcheng87@huawei.com> - 19.1.0-3
- Fix compilation failure caused by gcc
* Fri Mar 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 19.1.0-2
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:enable make check
* Thu Jan 09 2020 openEuler Buildteam <buildteam@openeuler.org> - 19.1.0-1
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:update version to 19.1.0
* Sat Oct 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 19.0.1-2 * Sat Oct 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 19.0.1-2
- Type:enhancement - Type:enhancement
- Id:NA - Id:NA

4
xorg-x11-drv-ati.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: eurolinux-enterprise-linux-sources/xorg-x11-font-utils
tag_prefix:
seperator: .