rpms/xorg-x11-drv-amd/OLPC-2 fix-potential-CPU-GP-race-in-lx_get_source_color.patch, NONE, 1.1
Daniel Williams (dcbw)
fedora-extras-commits at redhat.com
Thu Jul 12 04:04:25 UTC 2007
Author: dcbw
Update of /cvs/extras/rpms/xorg-x11-drv-amd/OLPC-2
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20883
Added Files:
fix-potential-CPU-GP-race-in-lx_get_source_color.patch
Log Message:
Add hack patch for font corruption bug
fix-potential-CPU-GP-race-in-lx_get_source_color.patch:
--- NEW FILE fix-potential-CPU-GP-race-in-lx_get_source_color.patch ---
>From a3088c6ba17d136131f76993d789305256fde2bf Mon Sep 17 00:00:00 2001
From: Bernardo Innocenti <bernie at codewiz.org>
Date: Wed, 11 Jul 2007 08:55:17 -0400
Subject: [PATCH] Fix potential CPU/GP race in lx_get_source_color()
Organization: One Laptop Per Child
---
src/amd_lx_exa.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/amd_lx_exa.c b/src/amd_lx_exa.c
index 3f079cd..69c8fa6 100644
--- a/src/amd_lx_exa.c
+++ b/src/amd_lx_exa.c
@@ -262,6 +262,9 @@ static unsigned int lx_get_source_color(PicturePtr pSrc, int x, int y, int dstFo
bits += (y * stride) + (x * (bpp >> 3));
+ /* GP may still be working on this surface */
+ gp_wait_until_idle();
+
/* Read the source value */
switch(bpp) {
--
1.5.2.2
More information about the scm-commits
mailing list