Bug 3781 - OpenOffice.org and Wine can't display transparent images in recent Xorg snapshots
Summary: OpenOffice.org and Wine can't display transparent images in recent Xorg snaps...
Alias: None
Product: xorg
Classification: Unclassified
Component: * Other (show other bugs)
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Adam Jackson
QA Contact:
: 4569 (view as bug list)
Depends on:
Blocks: 1690
  Show dependency treegraph
Reported: 2005-07-15 05:47 UTC by Giacomo Perale
Modified: 2005-10-02 19:34 UTC (History)
12 users (show)

See Also:
i915 platform:
i915 features:

9914_all_6.8.2-mmx-gcc4.patch (51.66 KB, patch)
2005-09-14 10:37 UTC, Giacomo Perale
no flags Details | Splinter Review
screenshot of openoffice2 under a broken xorg (52.26 KB, image/png)
2005-09-15 01:52 UTC, Paul de Vrieze
no flags Details

Description Giacomo Perale 2005-07-15 05:47:23 UTC
OpenOffice.org and Wine can't display images with transparent background
anymore, on xorg snapshots at least >= This means, for example, that
every icon in OpenOffice has a black background, Impress animation are black too
and Wine buttons are rendered wrongly.

This bug has also been reported in gentoo bugzilla too, because it's triggered
by a patch taken from xorg CVS and recently included in xorg-x11 6.8.2-r2; see
Comment 1 Giacomo Perale 2005-07-15 05:50:04 UTC
Created attachment 3083 [details] [review]
replacing backslash with slash as it is also done in parse.c in scan_dir

Problem with Wine buttons. Also images with transparent background don't work.
Comment 2 Giacomo Perale 2005-07-15 05:52:24 UTC
Created attachment 3084 [details]
My xorg.conf

Image showing how OpenOffice displays icons.
Comment 3 Giacomo Perale 2005-07-15 05:55:06 UTC
Created attachment 3085 [details]
Xorg.0.log from my working 6.8.2 setup

With this patch applied, xorg 6.8.2 is affected by the same problem of the
recent snapshots.
Comment 4 Donnie Berkholz 2005-07-15 06:29:35 UTC
This looks like the commit:

Thu Jan 13 15:40:29 2005  Søren Sandmann  <sandmann@redhat.com>

	* programs/Xserver/fb/fbmmx.c (fbCompositeSrc_8888x8x8888mmx): Add
	MMX implementation of non-repeating source IN repeating mask, aka
	"translucent window".

	* programs/Xserver/fb/fbmmx.c (fbCopyAreammx,
	fbCompositeCopyAreammx): Add MMX implementation of CopyArea.

	* programs/Xserver/fb/fbcopy.c (fbCopyNtoN): Use MMX
	implementation of CopyArea.

	* programs/Xserver/fb/fbpict.c (fbComposite): Use the new
Comment 5 FreeDesktop Bugzilla Database Corruption Fix User 2005-07-20 09:26:37 UTC
given the commits that were indicated, i figured it couldn't hurt re-emerge the
xorg-x11- ebuild, but with USE=-mmx.  didn't seem to make a difference.
 but then again, i don't think i disabled mmx in my CFLAGS....  anyway, just an
extra data point.

is anyone actively working on this, btw?
Comment 6 Donnie Berkholz 2005-07-20 09:56:30 UTC
Gentoo's mmx/sse/3dnow USE flags in xorg only affect Mesa.
Comment 7 FreeDesktop Bugzilla Database Corruption Fix User 2005-07-21 12:59:17 UTC
well, just as an FYI, the bug is still there with the xorg-x11- snapshot.
Comment 8 Søren Sandmann Pedersen 2005-08-02 03:18:44 UTC
Have people tried this with a xorg from after this commit:

Wed May 18 21:20:35 2005  Soren Sandmann  <sandmann@redhat.com>

        * programs/Xserver/fb/fbmmx.c (fbCompositeSrc_8888x8x8888mmx):
        s/dst/src that I missed in the previous patch. Pointed out by
        Owen Taylor.

Wed May 18 16:47:44 2005  Soren Sandmann  <sandmann@redhat.com>

        * programs/Xserver/fb/fbmmx.c (fbCompositeSrc_8888x8x8888mmx):
        Actually assign the computed results. (Reported by Michael
        Daenzer, patch by Owen Taylor).
Comment 9 Donnie Berkholz 2005-08-02 03:24:24 UTC
There's a report on here from, which is well after that date.
Comment 10 Iain 2005-08-04 10:08:16 UTC
For the record, it also happens with rdesktop to a windows box, using various
apps.  I don't know if this is relavent, but I noticed all the reports mention
wine an openoffice.

rdesktop 1.4.1
xorg 6.8.2-r2
Comment 11 Søren Sandmann Pedersen 2005-08-06 07:26:25 UTC
Has anyone seen this with another distribution than Gentoo?
Comment 12 László Károly 2005-08-13 08:52:19 UTC
(In reply to comment #11)
> Has anyone seen this with another distribution than Gentoo?
FreeBSD 5.4, 6-BETA (x.org was compiled from CVS as of today)
Comment 13 Donnie Berkholz 2005-09-13 23:30:54 UTC
Søren, presume you can't reproduce this on Fedora?
Comment 14 Donnie Berkholz 2005-09-13 23:49:33 UTC
(In reply to comment #3)
> Created an attachment (id=3085) [edit]
> Patch that breaks xorg 6.8.2
> With this patch applied, xorg 6.8.2 is affected by the same problem of the
> recent snapshots.

Want to reattach this? Looks like it got corrupted.
Comment 15 Søren Sandmann Pedersen 2005-09-14 10:23:21 UTC
I haven't seen the problem, no.
Comment 16 Giacomo Perale 2005-09-14 10:37:24 UTC
Created attachment 3267 [details] [review]

(In reply to comment #12)
> Want to reattach this? Looks like it got corrupted.

patch reattached. BTW, I didn't mention that the problem is not clearly visible
in oo2 or ximian-openoffice's interface, but only with plain openoffice. in
ximian 1.3.15 I noticed just a few black icons, for example in Calc formula
Comment 17 Paul de Vrieze 2005-09-15 01:52:24 UTC
Created attachment 3278 [details]
screenshot of openoffice2 under a broken xorg

In the openoffice 2 beta's the problem is not any longer with the icons. But it
is present in smaller widgets like the subwindow close widget. I've attached a
screenshot of openoffice impress 680-m125 that shows the problem. The only
black square that should be on the picture is in the color selection widget.
The other (not text blacks) should be some shades of gray.
Comment 18 Giacomo Perale 2005-09-25 07:17:31 UTC
from a comment in Gentoo bugzilla:
------- Additional Comment #72 From  Matthew Stapleton  2005-09-25 07:11 PDT -------

After looking at 9914_all_6.8.2-mmx-gcc4.patch, I removed the changes to 
fbpict.c and that made no difference.  Then I removed the changes it makes to 
fbcopy and that seemed to fix the problem. 
I'm using gcc 3.4.4, CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe", 
and mmx and sse USE flags for xorg-x11. 
Comment 19 Joshua Baergen 2005-10-01 22:15:33 UTC
A possible solution has been proposed and tested (successfully) by one person.

Comment 20 Adam Jackson 2005-10-02 21:59:44 UTC
*** Bug 4569 has been marked as a duplicate of this bug. ***
Comment 21 Adam Jackson 2005-10-03 00:07:35 UTC
solution looks perfect, will commit in the morning.
Comment 22 Joshua Baergen 2005-10-03 09:35:06 UTC
Alright, I just tested the patch against our latest modular snapshot and it
applied cleanly and fixed the problem.
Comment 23 Adam Jackson 2005-10-03 12:34:05 UTC
applied, thanks!

i think i'm terrified that someone is actually using something besides GXcopy

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.