[arch-commits] Commit in xorg-server/trunk (2 files)
Laurent Carlier
lcarlier at archlinux.org
Tue Apr 14 10:41:31 UTC 2015
Date: Tuesday, April 14, 2015 @ 12:41:30
Author: lcarlier
Revision: 236527
upgpkg: xorg-server 1.17.1-5
fix FS#43937
Added:
xorg-server/trunk/0001-mi-Partial-pie-slice-filled-arcs-may-need-more-space.patch
Modified:
xorg-server/trunk/PKGBUILD
-----------------------------------------------------------------+
0001-mi-Partial-pie-slice-filled-arcs-may-need-more-space.patch | 42 ++++++++++
PKGBUILD | 10 +-
2 files changed, 49 insertions(+), 3 deletions(-)
Added: 0001-mi-Partial-pie-slice-filled-arcs-may-need-more-space.patch
===================================================================
--- 0001-mi-Partial-pie-slice-filled-arcs-may-need-more-space.patch (rev 0)
+++ 0001-mi-Partial-pie-slice-filled-arcs-may-need-more-space.patch 2015-04-14 10:41:30 UTC (rev 236527)
@@ -0,0 +1,42 @@
+From 41932dfbc841a1adc6512d41085ea3f8ebecb42c Mon Sep 17 00:00:00 2001
+From: Keith Packard <keithp at keithp.com>
+Date: Wed, 8 Apr 2015 07:45:28 -0700
+Subject: [PATCH] mi: Partial pie-slice filled arcs may need more space for
+ spans
+
+The mi filled arc code estimates that a filled arc will produce no
+more spans than the arc is tall. This is true for most arcs except
+for pie-slice arcs strictly between 180 and 360 degrees where the missing
+portion of the arc faces up or down such that we get two spans on some
+scanlines.
+
+For those, we need to reserve room for another height/2 spans. This
+patch just does it for all partial pie-sliced arcs to make the test
+easier to understand; it's just over-allocating a bit of memory, so
+that's safe.
+
+Signed-off-by: Keith Packard <keithp at keithp.com>
+Reviewed-by: Adam Jackson <ajax at redhat.com>
+---
+ mi/mifillarc.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/mi/mifillarc.c b/mi/mifillarc.c
+index 246d70f..888519e 100644
+--- a/mi/mifillarc.c
++++ b/mi/mifillarc.c
+@@ -660,6 +660,11 @@ miPolyFillArc(DrawablePtr pDraw, GCPtr pGC, int narcs_all, xArc * parcs)
+ if (narcs && nspans + arc->height > MAX_SPANS_PER_LOOP)
+ break;
+ nspans += arc->height;
++
++ /* A pie-slice arc may add another pile of spans */
++ if (pGC->arcMode == ArcPieSlice &&
++ (-FULLCIRCLE < arc->angle2 && arc->angle2 < FULLCIRCLE))
++ nspans += (arc->height + 1) >> 1;
+ }
+
+ pts = points = malloc (sizeof (DDXPointRec) * nspans +
+--
+2.3.5
+
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-04-14 10:26:17 UTC (rev 236526)
+++ PKGBUILD 2015-04-14 10:41:30 UTC (rev 236527)
@@ -5,7 +5,7 @@
pkgbase=xorg-server
pkgname=('xorg-server' 'xorg-server-xephyr' 'xorg-server-xdmx' 'xorg-server-xvfb' 'xorg-server-xnest' 'xorg-server-xwayland' 'xorg-server-common' 'xorg-server-devel')
pkgver=1.17.1
-pkgrel=4 # build first with 0.1 and then rebuild it after xf86-input-evdev rebuild
+pkgrel=5 # build first with 0.1 and then rebuild it after xf86-input-evdev rebuild
arch=('i686' 'x86_64')
license=('custom')
url="http://xorg.freedesktop.org"
@@ -22,7 +22,8 @@
xvfb-run.1
os-access-fix-regression-in-server-interpreted-auth.patch
v2-xserver-Fix-a-crash-with-XDMCP-error-handler.patch
- 0001-int10-Fix-error-check-for-pci_device_map_legacy.patch)
+ 0001-int10-Fix-error-check-for-pci_device_map_legacy.patch
+ 0001-mi-Partial-pie-slice-filled-arcs-may-need-more-space.patch)
validpgpkeys=('7B27A3F1A6E18CD9588B4AE8310180050905E40C'
'C383B778255613DFDB409D91DB221A6900000011')
sha256sums=('2bf8e9f6f0a710dec1d2472467bff1f4e247cb6dcd76eb469aafdc8a2d7db2ab'
@@ -32,7 +33,8 @@
'2460adccd3362fefd4cdc5f1c70f332d7b578091fb9167bf88b5f91265bbd776'
'8a9d76eecf8795ca645fb1ce261733965578e953f6606153ce001a0e15d036e8'
'a73e33644682d9f430db987c192da0f7193907af50539669ebd59614a5ebd0f9'
- '2ea82cdbd695f21c935710847913ed58e22d3d5c0c18c96175a4a6cc1142c071')
+ '2ea82cdbd695f21c935710847913ed58e22d3d5c0c18c96175a4a6cc1142c071'
+ 'ca89cc013844c5b50abfde4cc5e852ecdf4368f8b069ffd069a7100843c46e90')
prepare() {
cd "${pkgbase}-${pkgver}"
@@ -42,6 +44,8 @@
patch -Np1 -i ../v2-xserver-Fix-a-crash-with-XDMCP-error-handler.patch
# fix FS#43924, merged upstream
patch -Np1 -i ../0001-int10-Fix-error-check-for-pci_device_map_legacy.patch
+ # fix FS#43937, merged upstream
+ patch -Np1 -i ../0001-mi-Partial-pie-slice-filled-arcs-may-need-more-space.patch
}
build() {
More information about the arch-commits
mailing list