Compare commits
No commits in common. "c74663b3cddfaf21810f89a1c115e2239dc143c3" and "dfca7b19b54101d0b6c3b6350a47723282f77015" have entirely different histories.
c74663b3cd
...
dfca7b19b5
63
0001-Disable-shadow-by-default-on-known-virtual-GPUs.patch
Normal file
63
0001-Disable-shadow-by-default-on-known-virtual-GPUs.patch
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
From 57301015f16e26f12caf6f6cb4d730e7793cb2c3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Adam Jackson <ajax@redhat.com>
|
||||||
|
Date: Wed, 30 May 2018 11:46:46 -0400
|
||||||
|
Subject: [PATCH xf86-video-vesa] Disable shadow by default on known-virtual
|
||||||
|
GPUs
|
||||||
|
|
||||||
|
Device memory is the same domain as host memory, in this case, so the
|
||||||
|
shadow just introduces more memcpy.
|
||||||
|
|
||||||
|
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
||||||
|
---
|
||||||
|
src/vesa.c | 35 ++++++++++++++++++++++++++++++++---
|
||||||
|
1 file changed, 32 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/vesa.c b/src/vesa.c
|
||||||
|
index 2300f4e..7d2bf94 100644
|
||||||
|
--- a/src/vesa.c
|
||||||
|
+++ b/src/vesa.c
|
||||||
|
@@ -844,9 +844,38 @@ VESAPreInit(ScrnInfoPtr pScrn, int flags)
|
||||||
|
memcpy(pVesa->Options, VESAOptions, sizeof(VESAOptions));
|
||||||
|
xf86ProcessOptions(pScrn->scrnIndex, pScrn->options, pVesa->Options);
|
||||||
|
|
||||||
|
- /* Use shadow by default */
|
||||||
|
- pVesa->shadowFB = xf86ReturnOptValBool(pVesa->Options, OPTION_SHADOW_FB,
|
||||||
|
- TRUE);
|
||||||
|
+ /* Use shadow by default, for non-virt hardware */
|
||||||
|
+ if (!xf86GetOptValBool(pVesa->Options, OPTION_SHADOW_FB, &pVesa->shadowFB))
|
||||||
|
+ {
|
||||||
|
+ switch (pVesa->pciInfo->vendor_id) {
|
||||||
|
+ case 0x1234: /* bochs vga (not in pci.ids) */
|
||||||
|
+ case 0x15ad: /* vmware */
|
||||||
|
+ case 0x1b36: /* qemu qxl */
|
||||||
|
+ case 0x80ee: /* virtualbox */
|
||||||
|
+ case 0xaaaa: /* parallels (not in pci.ids) */
|
||||||
|
+ pVesa->shadowFB = FALSE;
|
||||||
|
+ break;
|
||||||
|
+
|
||||||
|
+ case 0x1013: /* qemu's cirrus emulation */
|
||||||
|
+ if (pVesa->pciInfo->subvendor_id == 0x1af4)
|
||||||
|
+ pVesa->shadowFB = FALSE;
|
||||||
|
+ else
|
||||||
|
+ pVesa->shadowFB = TRUE;
|
||||||
|
+ break;
|
||||||
|
+
|
||||||
|
+ case 0x1414: /* microsoft hyper-v */
|
||||||
|
+ if (pVesa->pciInfo->device_id == 0x5353)
|
||||||
|
+ pVesa->shadowFB = FALSE;
|
||||||
|
+ else
|
||||||
|
+ pVesa->shadowFB = TRUE;
|
||||||
|
+ break;
|
||||||
|
+
|
||||||
|
+ default:
|
||||||
|
+ pVesa->shadowFB = TRUE;
|
||||||
|
+ break;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
/* Use default refresh by default. Too many VBE 3.0
|
||||||
|
* BIOSes are incorrectly implemented.
|
||||||
|
*/
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
BIN
xf86-video-vesa-2.4.0.tar.bz2
Normal file
BIN
xf86-video-vesa-2.4.0.tar.bz2
Normal file
Binary file not shown.
Binary file not shown.
@ -4,17 +4,19 @@
|
|||||||
%undefine _hardened_build
|
%undefine _hardened_build
|
||||||
|
|
||||||
Name: xorg-x11-drv-vesa
|
Name: xorg-x11-drv-vesa
|
||||||
Version: 2.6.0
|
Version: 2.4.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Xorg X11 vesa video driver
|
Summary: Xorg X11 vesa video driver
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://www.x.org
|
URL: https://www.x.org
|
||||||
Source0: https://xorg.freedesktop.org/releases/individual/driver/xf86-video-vesa-%{version}.tar.xz
|
Source0: https://xorg.freedesktop.org/releases/individual/driver/xf86-video-vesa-%{version}.tar.bz2
|
||||||
|
|
||||||
|
Patch1: 0001-Disable-shadow-by-default-on-known-virtual-GPUs.patch
|
||||||
|
|
||||||
ExclusiveArch: %{ix86} x86_64
|
ExclusiveArch: %{ix86} x86_64
|
||||||
|
|
||||||
BuildRequires: xorg-x11-server-devel >= 1.10.99.902
|
BuildRequires: xorg-x11-server-devel >= 1.10.99.902
|
||||||
BuildRequires: autoconf automake libtool make
|
BuildRequires: autoconf automake libtool
|
||||||
|
|
||||||
Requires: Xorg %([ -e /usr/bin/xserver-sdk-abi-requires ] && xserver-sdk-abi-requires ansic)
|
Requires: Xorg %([ -e /usr/bin/xserver-sdk-abi-requires ] && xserver-sdk-abi-requires ansic)
|
||||||
Requires: Xorg %([ -e /usr/bin/xserver-sdk-abi-requires ] && xserver-sdk-abi-requires videodrv)
|
Requires: Xorg %([ -e /usr/bin/xserver-sdk-abi-requires ] && xserver-sdk-abi-requires videodrv)
|
||||||
@ -45,30 +47,9 @@ autoreconf -v --install || exit 1
|
|||||||
|
|
||||||
%files help
|
%files help
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README.md ChangeLog
|
%doc README ChangeLog
|
||||||
%{_mandir}/man4/vesa.4*
|
%{_mandir}/man4/vesa.4*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Jan 30 2023 zhouyihang <zhouyihang3@h-partners.com> - 2.6.0-1
|
|
||||||
- Type:requirements
|
|
||||||
- ID:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:update xorg-x11-drv-vesa to 2.6.0
|
|
||||||
|
|
||||||
* Mon Oct 24 2022 zhouyihang <zhouyihang3@h-partners.com> - 2.5.0-2
|
|
||||||
- Type:bugfix
|
|
||||||
- ID:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:Fix spelling wording issues
|
|
||||||
|
|
||||||
* Sat Jan 30 2021 xihaochen <xihaochen@huawei.com> - 2.5.0-1
|
|
||||||
- Type:requirements
|
|
||||||
- Id:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:update xorg-x11-drv-vesa to 2.5.0
|
|
||||||
|
|
||||||
* Sat Mar 21 2020 fengtao <fengtao40@huawei.com> - 2.4.0-2
|
|
||||||
- Refuse vesa on UEFI
|
|
||||||
|
|
||||||
* Tue Mar 10 2020 hexiujun <hexiujun1@huawei.com> - 2.4.0-1
|
* Tue Mar 10 2020 hexiujun <hexiujun1@huawei.com> - 2.4.0-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
version_control: git
|
|
||||||
src_repo: https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa.git
|
|
||||||
tag_prefix: xf86-video-vesa-
|
|
||||||
seperator: .
|
|
||||||
Loading…
x
Reference in New Issue
Block a user