[PATCH] Ensure blitter quiescience before reading pixels from the framebuffer

Daniel Stone daniel at fooishbar.org
Tue Jul 17 06:29:39 PDT 2007

On Tue, Jul 17, 2007 at 12:02:36PM +0100, Bernardo Innocenti wrote:
> On my laptop, I sometimes see trapezoids and glyphs painted in
> the wrong color.  It happens mostly in Gtk widgets, but I could
> reproduce the problem also with a small cairo testcase.
> I can't test this fix right now because I'm travelling and I
> can't afford to download and build all the xserver prerequisites,
> but the race I'm fixing here would perfectly justify the symptoms
> I see.
> Unfortunately, calling XSync() at this point will stall the GPU
> and has therefore a huge impact on performance.  But I can't
> think of another way to protect access.  If we're always going
> to accesse these 1x1 repeated pixmaps with the CPU, a better
> fix would be not uploading them in the first place.

You might start by mentioning which driver you're using?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20070717/7af8b193/attachment.pgp>

More information about the xorg mailing list