[PATCH] Add support for RENDER BGRA formats.
macallan at netbsd.org
Tue Oct 13 12:22:55 PDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
On Oct 13, 2009, at 2:51 PM, Adam Jackson wrote:
> On Fri, 2009-10-09 at 11:26 +0200, Mark Kettenis wrote:
>>> Hmm, right. The two hunks above were aimed towards my first
>>> approach for
>>> fixing radeon KMS on big endian machines, by making the root window
>>> visual BGRA. I've since abandoned that approach for a different
>>> one, so
>>> those hunks are not needed anymore and obviously even harmful. I'll
>>> submit a patch to revert them.
>> Well, it would be nice if a solution to support BGRA properly would
>> found. I have an i128-based card designed for Sun UltraSPARC
>> that can't do the byteswaps in hardware like the radeons can.
> Not that you're wrong (about proper BGRA support), but I think you may
> be wrong (about i128). I'd like to see an X log from that chip with
> Option "Debug" "on" in xorg.conf, I suspect CMD_HDF and MWn_CTRL
> will be
... which reminds me - I have an SBus card with ( among others ) an
I128. I wrote an accelerated kernel driver for NetBSD using the X
driver as reference, but the X driver doesn't support any mono-to-
colour expansion. Does anyone have any I128 docs? Or does the chip
simply not support colour expansion?
I have never heard of any i128 PCI cards for Suns - do you have a
model name or something?
Most PCI graphics chips have their (framebuffer) apertures split into
a big endian and a little endian half, some have programmable byte
twiddling, some have both. It would be a strange choice to pick one of
the few chips that don't support big endian mode for a big endian
machine. So, it's probably there somewhere.
Also, it might give you a hint or two if you ran the OF console in 24
bit ( output-device=screen:r1152x900x76x24 works on at least some Sun
graphics boards ) and then check if the address property agrees with
the framebuffer BAR ( there should be an entry for it in /memory/
translations, 'address' is an OF virtual address after all )
Or, just check what's halfway up the framebuffer aperture.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
-----END PGP SIGNATURE-----
More information about the xorg-devel