Thread (10 messages) 10 messages, 5 authors, 2004-02-17

Re: atyfb expert needed

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2004-02-17 06:05:29

On Sun, 2004-02-15 at 02:26, Alexander Kern wrote:
Am Samstag, 14. Februar 2004 00:20 schrieb Benjamin Herrenschmidt:
quoted
quoted
Hi,
mach64_ct.c(where aty_dsp_gt is) from James tree should be identical with
Daniel'S 2.4 tree. If not, please send me the diff.
Is Daniel's latest version in current 2.4 or is there another source
for his patches ?
Ok. Comparing 2.4.24 & 2.6.3/fbdev to XFree driver, it seems that
2.6.3/fbdev matches XFree more closely.... Except that we are missing
the FIFO_24 attribute for the LT-G chip.

Fixing that leads to slightly less crapy display, but still unreadable... until
I figured out that acceleration (imageblit more precisely) has broken endianness...

This kludge fixes it for me (maybe incorrect, just a quick fix) :
@@ -419,9 +425,9 @@
                }
        } else {
                u32 *pbitmap;
-               for(pbitmap = (u32*)(image->data); dwords; dwords--, pbitmap++) {
-                       wait_for_fifo(1, par);
-                       aty_st_le32(HOST_DATA0, *pbitmap, par);
+               for (pbitmap = (u32*)(image->data); dwords; dwords--, pbitmap++) {
+                       wait_for_fifo(2, par);
+                       aty_st_le32(HOST_DATA0, le32_to_cpup(pbitmap), par);
                }
 
_BUT_ then, I get a lockup when reaching the end of the screen... Apparently,
it locks up when drawin the last line, not sure if it did a scroll yet or not.
I'm playing with the accel fifo a bit, but that's definitely a regression.

Ben.






-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help