On Wed, 2002-07-17 at 03:57, Henry Worth wrote:
> Michel D�nzer wrote:
> 
> >
> >Thank you for breaking the radeon and mach64 drivers on big endian
> >machines. ;) We've got to find a better solution here, I must confess I
> >still don't understand how it can not work with PACK*LE though. Maybe
> >the HOST_BIG_ENDIAN_EN bit in the DP_DATATYPE register (set in
> >R128EngineInit() in the 2D driver) is interfering, causing the texture
> >data to be byte-swapped in the HOST_DATA registers? If so, your changes
> >should not be really correct for 16 bit anyway. I've been there while
> >playing with the various possibilities of fixing endianness in the
> >radeon driver, it looked mostly good but e.g. the floor texture in
> >armagetron showed the problem.
> >
> 
> I gave the driver a quick try without the HOST_BIG_ENDIAN_EN bit
> set and with the PACK*LE macros. And, the 2-d stuff seems to be working
> and the textures do need the PACK*LE macros. So, perhaps the bit only
> impacts the DMA blits used to load the texture subimages?

Possibly. The HOST_DATA registers are used for other stuff but
HOST_BIG_ENDIAN_EN seems to be sensitive to the advertised format and
the other users maybe set formats which don't cause bytes to get
swapped.

> If someone with the docs can confirm what that bit is suppose to do, we

The register reference isn't very clear, it just says the bit causes
bytes to be swapped according to the 'pixel width'. No mention where
they get swapped (I assume in the HOST_DATA registers) or how the pixel
width is determined (I assume from the data type set in the
DP_GUI_MASTER_CNTL register).

> may get be able to getaway with eliminating that bit.

I'm convinced that's the only way, as I'll explain in a followup to your
other post. But first, I have to get some sleep...


-- 
Earthling Michel D�nzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast



-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to