* 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* Re: Fwd: Re: bug in XFree86 4.1.0 with Rage 128 driver?
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
0 siblings, 1 reply; 11+ messages in thread
From: Michel Dänzer @ 2001-10-11 11:45 UTC (permalink / raw)
To: Kevin B. Hendricks
Cc: linuxppc-dev, yellowdog-devel, Herbert Duerr, Olaf Hering,
kevin.hendricks
"Kevin B. Hendricks" wrote:
> 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"
Why does it work with the fbdev driver then?
> Michel will you see that this makes it into the next XF 4.X release for us.
I don't feel qualified to do that. Xpert@XFree86.Org is a mailing list which
the author of this code and other very competent XFree86 hackers read, or if
you're absolutely sure the fix is correct, please submit it to
fixes@XFree86.Org .
--
Earthling Michel Dänzer (MrCooper) \ Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast \ XFree86 and DRI project member
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Fwd: Re: bug in XFree86 4.1.0 with Rage 128 driver?
2001-10-11 11:45 ` Michel Dänzer
@ 2001-10-11 11:49 ` Olaf Hering
2001-10-11 12:53 ` Kevin Hendricks
2001-10-11 13:04 ` Kevin Hendricks
0 siblings, 2 replies; 11+ messages in thread
From: Olaf Hering @ 2001-10-11 11:49 UTC (permalink / raw)
To: Michel Dänzer
Cc: Kevin B. Hendricks, linuxppc-dev, yellowdog-devel, Herbert Duerr,
kevin.hendricks
On Thu, Oct 11, Michel Dänzer wrote:
> "Kevin B. Hendricks" wrote:
>
> > 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"
>
> Why does it work with the fbdev driver then?
>
>
> > Michel will you see that this makes it into the next XF 4.X release for us.
>
> I don't feel qualified to do that. Xpert@XFree86.Org is a mailing list which
> the author of this code and other very competent XFree86 hackers read, or if
> you're absolutely sure the fix is correct, please submit it to
> fixes@XFree86.Org .
keithp already put something in the CVS. It did not work with "ati", but
with fbdev (clgen).
The patch fixed it for me on the Pismo.
Gruss Olaf
--
$ man clone
BUGS
Main feature not yet implemented...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: bug in XFree86 4.1.0 with Rage 128 driver?
2001-10-11 11:49 ` Olaf Hering
@ 2001-10-11 12:53 ` Kevin Hendricks
[not found] ` <1002814351.12609.408.camel@pismo>
2001-10-11 13:04 ` Kevin Hendricks
1 sibling, 1 reply; 11+ messages in thread
From: Kevin Hendricks @ 2001-10-11 12:53 UTC (permalink / raw)
To: Olaf Hering; +Cc: Michel Dänzer, linuxppc-dev, Herbert Duerr
Hi All.
>> I don't feel qualified to do that. Xpert@XFree86.Org is a mailing list
>> which
>> the author of this code and other very competent XFree86 hackers read,
>> or if
>> you're absolutely sure the fix is correct, please submit it to
>> fixes@XFree86.Org .
Michel:
I just don't see how using an uninitialized variable in an "if"
statement can be anything else but a bug. You could have at least
looked at the code in question before replying. You are a member of
XFree representing ppc linux aren't you? I assumed with your signature
and your earlier responses, you were the right person to contact. If
not, I apologize for bothering you.
> keithp already put something in the CVS. It did not work with "ati", but
> with fbdev (clgen).
> The patch fixed it for me on the Pismo.
Thanks Olaf,
Glad to see it helped and is in CVS.
Kevin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: bug in XFree86 4.1.0 with Rage 128 driver?
2001-10-11 11:49 ` Olaf Hering
2001-10-11 12:53 ` Kevin Hendricks
@ 2001-10-11 13:04 ` Kevin Hendricks
1 sibling, 0 replies; 11+ messages in thread
From: Kevin Hendricks @ 2001-10-11 13:04 UTC (permalink / raw)
To: Olaf Hering; +Cc: Michel Dänzer, linuxppc-dev, Herbert Duerr
Hi,
>> Why does it work with the fbdev driver then?
Just a guess.
Since we are using an uninitialized variable whatever was in memory
previously determined the value of xFormat. So the result was random
behavior when checking for formats.
So anything that changed the stack usage or memory layout would / should
have an impact.
Kevin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ 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).