linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Fwd: Re: bug in XFree86 4.1.0 with Rage 128 driver?
@ 2001-10-11  2:53 Kevin B. Hendricks
  2001-10-11 11:45 ` Michel Dänzer
  0 siblings, 1 reply; 11+ messages in thread
From: Kevin B. Hendricks @ 2001-10-11  2:53 UTC (permalink / raw)
  To: linuxppc-dev, Michel Dänzer, yellowdog-devel
  Cc: Herbert Duerr, Olaf Hering, kevin.hendricks

[-- Attachment #1: Type: text/plain, Size: 1511 bytes --]

Hi Michel (and FYI Herbert).

The bug was in XF 4.1.0 in Xrender.c not in OpenOffice

The patch is attached.  They (XF4 guys) simply missed changing a variable
name and ended up using random garbage in an "if"

Dan and Olaf, if you haven't gone to press with new releases, you probably
should include this one in your next respin builds of XFree86 4.1.0

Michel will you see that this makes it into the next XF 4.X release for us.

Thanks,

Kevin



> Will you please look at the following diff from Xrender.c in XF 4.0.2 to
> Xrender.c in XF410.  It looks very strange.  Starting in lie 190.
> It seems they no longer Xmalloc a value for xFormat (they now use xData)
> but just one line later they check if xFormat is zero.

> The code before that in XRenderQueryFormats() doesNOT set a value for
> xFormat at all after its is declared and before it is tested.

> I think someone just missed changing and xFormat to an xData unless I am
> missing something here.

> Kevin



>@@ -190,19 +191,20 @@
>               rep.numScreens * sizeof (xPictScreen) +
>               rep.numDepths * sizeof (xPictDepth) +
>               rep.numVisuals * sizeof (xPictVisual));
>-    xFormat = (xPictFormInfo *) Xmalloc (rlength);
>+    xData = (void *) Xmalloc (rlength);
>
>     if (!xri || !xFormat)
>     {
>        if (xri) Xfree (xri);
>-       if (xFormat) Xfree (xFormat);
>+       if (xData) Xfree (xData);
>        _XEatData (dpy, rlength);
>        UnlockDisplay (dpy);
>        SyncHandle ();
>        return 0;

[-- Attachment #2: xf410_render.patch --]
[-- Type: text/x-diff, Size: 340 bytes --]

--- xc/lib/Xrender/Xrender.c.prev	Wed Oct 10 22:38:25 2001
+++ xc/lib/Xrender/Xrender.c	Wed Oct 10 22:39:09 2001
@@ -193,7 +193,7 @@
 	       rep.numVisuals * sizeof (xPictVisual));
     xData = (void *) Xmalloc (rlength);
     
-    if (!xri || !xFormat)
+    if (!xri || !xData)
     {
 	if (xri) Xfree (xri);
 	if (xData) Xfree (xData);

^ permalink raw reply	[flat|nested] 11+ messages in thread
* bug in XFree86 4.1.0 with Rage 128 driver?
@ 2001-10-11  1:21 Kevin B. Hendricks
       [not found] ` <1002764279.4001.662.camel@pismo>
  0 siblings, 1 reply; 11+ messages in thread
From: Kevin B. Hendricks @ 2001-10-11  1:21 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: kevin.hendricks


Hi,

I am trying to track down a bug that causes OpenOffice to segfault under
XFree86 4.1.0 with rage 128 driver.  This same problem does NOT happen
with XFree 4.0.2.

The problem stems from incorrect or missing alpha information in the
visual.  Olaf tried it with a straight fbdev driver and the problem
disappears so it appears to be linked to changes in the Rage 128 driver
from XF 4.0.2 to XF 4.1.0.

I am trying to look at what changed and was wondering about the lack of
support for depth 32 in the r128 driver.

If I specify depth 32, I used to get 24 bits of color depth with 32 bpp in
the Rage 128 driver.  Now if I try to specify a  depth of 32 in the
XF86Config file, I get the following message:

"Given depth (32) is not supported by the r128 driver".

But if I specify 24 bits of color depth I seem to be getting cfb24 being
used instead of cfb32.

Does anyone know why this change was made?  The kernel itself does support
depths of "32" in the kernel rage 128 driver.

I agree this confuses the depth versus bpp issue but different code is
being used (cfb24 versus cfb32) and the resulting visuals have changed.

Any help would be greatly appreciated.

Thanks,

Kevin


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-10-11 16:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-11  2:53 Fwd: Re: bug in XFree86 4.1.0 with Rage 128 driver? Kevin B. Hendricks
2001-10-11 11:45 ` Michel Dänzer
2001-10-11 11:49   ` Olaf Hering
2001-10-11 12:53     ` Kevin Hendricks
     [not found]       ` <1002814351.12609.408.camel@pismo>
2001-10-11 15:35         ` Olaf Hering
2001-10-11 15:37         ` Kevin Hendricks
2001-10-11 16:33           ` Michel Dänzer
2001-10-11 16:38             ` Kevin Hendricks
2001-10-11 13:04     ` Kevin Hendricks
  -- strict thread matches above, loose matches on Subject: below --
2001-10-11  1:21 Kevin B. Hendricks
     [not found] ` <1002764279.4001.662.camel@pismo>
2001-10-11  1:53   ` Kevin B. Hendricks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).