xserver-kdrive 1.2.0: Add patch to actually enable offscreen pixmap acceleration...
authorPaul Sokolovsky <pmiscml@gmail.com>
Fri, 6 Apr 2007 16:20:21 +0000 (16:20 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Fri, 6 Apr 2007 16:20:21 +0000 (16:20 +0000)
* Courtesy of Manuel Teira (sirfred).
* Tested on hx4700.

packages/xorg-xserver/xserver-kdrive/w100-fix-offscreen-bmp.patch [new file with mode: 0644]
packages/xorg-xserver/xserver-kdrive_1.2.0.bb

diff --git a/packages/xorg-xserver/xserver-kdrive/w100-fix-offscreen-bmp.patch b/packages/xorg-xserver/xserver-kdrive/w100-fix-offscreen-bmp.patch
new file mode 100644 (file)
index 0000000..39bc22c
--- /dev/null
@@ -0,0 +1,15 @@
+Patch suggested by Manuel Teira to actually enable offscreen pixmap 
+acceleration in Xw100. Value 16 is empirical, works well on hx4700,
+but in case of issues, consider double it (other accelerated drivers
+use bigger values than 16).
+
+--- xorg-server-1.2.0/hw/kdrive/w100/ati_draw.c.org    2007-04-04 10:28:57.000000000 +0000
++++ xorg-server-1.2.0/hw/kdrive/w100/ati_draw.c        2007-04-06 14:43:40.000000000 +0000
+@@ -433,6 +433,7 @@
+      * or kaaPixmapUseScreen. But this is probably caused by some bug in this
+      * driver...  */
+     atis->kaa.flags |= KAA_OFFSCREEN_PIXMAPS;
++    atis->kaa.pitchAlign = 16;
+     if (!kaaDrawInit(pScreen, &atis->kaa))
+         return FALSE;
index cb58eee..2ba1b09 100644 (file)
@@ -3,12 +3,13 @@ require xserver-kdrive-common.inc
 DEPENDS += "libxkbfile libxcalibrate"
 
 PE = "1"
-PR = "r5"
+PR = "r6"
 
 SRC_URI = "${XORG_MIRROR}/individual/xserver/xorg-server-${PV}.tar.bz2 \
        ${KDRIVE_COMMON_PATCHES} \
        file://enable-xcalibrate.patch;patch=1 \
         file://w100.patch;patch=1 \
+        file://w100-fix-offscreen-bmp.patch;patch=1 \
        "
        
 S = "${WORKDIR}/xorg-server-${PV}"