Found bug in mode switching but who is at fault...XFree86 or aty128fb.c?
Michel Dänzer
michdaen at iiic.ethz.ch
Sat Mar 25 18:57:37 EST 2000
Kevin Hendricks wrote:
> Okay so I found the bug. It seems all through the r128 driver, crtc.pitch
> values are set to the virtual x resolution (vxres) / 8. But in aty128fb.c
> in the var_to_crtc routine the crtc.pitch is set to be just the xres / 8.
>
> This is not a problem if xres == vxres. Which is what happens when the
> aty128fb.c starts up.
Not necessarily. The problem could have shown up if someone had put a mode
with xres < vxres as first in the "Modes" line, but apparently only
configuration tools tend to do that...
> So for any one mode it defaults to being okay.
Okay.
> Who is wrong? Should xfree shrink the vxres and vyres to match xres and
> yres before calling set_var or should aty128fb.c var_to_crtc routine be
> fixed to use vxres >> 3 instead of just xres >> 3?
I vote for the latter, because otherwise invisible parts of the screen may be
damaged, or am I wrong?
A better reason might be that it works perfectly as-is in glint ;)
Michel
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list