From: Michel Dänzer <daenzer@relog.ch>
To: Kostas Gewrgiou <gewrgiou@imbc.gr>
Cc: Michel Dänzer <daenzerm@student.ethz.ch>,
dri-devel@lists.sourceforge.net, linuxppc-dev@lists.linuxppc.org
Subject: Re: [Dri-devel] Re: Kind of success! (r128 on PPC (Re: LinuxPPC XServer))
Date: Tue, 08 Aug 2000 10:51:15 +0200 [thread overview]
Message-ID: <398FCA03.5EE01236@relog.ch> (raw)
In-Reply-To: Pine.LNX.4.21.0008072058480.21201-100000@idd-01.imbc.gr
Kostas Gewrgiou wrote:
> > > [...] you could run the r128 driver without fbdev to get 16 bits, but
> > > the code to switch the framebuffer to do byteswapping is missing so the
> > > colors will be wron (easy to add though).
> >
> > Where and how?
>
> Somewhere in R128ModeInit (or the functions that get called from it) will
> do fine i think.
I'll be trying in R128{Save,Restore}Crtc... , adding a config field to the
...Save... struct for the CONFIG_CNTL register. Does that make sense?
> About how now look at the following code from aty128fb that does the same
> thing.
>
> config = aty_ld_le32(CONFIG_CNTL) & ~3;
> #if defined(__BIG_ENDIAN)
> if (par->crtc.bpp >= 24)
> config |= 2; /* make aperture do 32 byte swapping */
> else if (par->crtc.bpp > 8)
> config |= 1; /* make aperture do 16 byte swapping */
> #endif
> aty_st_le32(CONFIG_CNTL, config);
Thanks, that code also caught my eye this morning on the train :)
Michel
--
Why drink & drive when you can smoke and fly???
______________________________________________________________________________
Earthling Michel Dänzer (MrCooper) \ CS student and free software enthusiast
Debian GNU/Linux (powerpc,i386) user \ member of XFree86, Team *AMIGA*, AUGS
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2000-08-08 8:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.21.0008031541210.6020-100000@idd-01.imbc.gr>
2000-08-04 15:03 ` Kind of success! (r128 on PPC (Re: LinuxPPC X Server)) Michel Dänzer
2000-08-04 17:03 ` Michel Dänzer
2000-08-04 17:50 ` Benjamin Herrenschmidt
2000-08-05 14:35 ` Michel Dänzer
2000-08-05 18:22 ` Kostas Gewrgiou
2000-08-05 18:43 ` Benjamin Herrenschmidt
2000-08-07 7:08 ` [Dri-devel] " Michel Dänzer
2000-08-07 13:31 ` Josh Huber
2000-08-08 12:35 ` Geert Uytterhoeven
2000-08-08 13:13 ` Josh Huber
2000-08-08 13:55 ` Geert Uytterhoeven
2000-08-08 16:54 ` Michael Schmitz
2000-08-09 14:20 ` Geert Uytterhoeven
2000-08-09 20:20 ` Michael Schmitz
2000-08-09 21:27 ` Geert Uytterhoeven
2000-08-05 18:45 ` Gareth Hughes
2000-08-07 7:14 ` Michel Dänzer
2000-08-07 18:09 ` Kostas Gewrgiou
2000-08-07 19:51 ` Sven Goethel
2000-08-08 8:46 ` [Dri-devel] Re: Kind of success! (r128 on PPC (Re: LinuxPPC XServer)) Michel Dänzer
2000-08-08 8:51 ` Michel Dänzer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=398FCA03.5EE01236@relog.ch \
--to=daenzer@relog.ch \
--cc=daenzerm@student.ethz.ch \
--cc=dri-devel@lists.sourceforge.net \
--cc=gewrgiou@imbc.gr \
--cc=linuxppc-dev@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.