Vladimir Dergachev wrote:
On Mon, 10 Jan 2005, Keith Conger wrote:
Hi,
Sorry this took so long. r300_driver prints -16580608 as fbLocation. As for X I can't seem to get it to print it, I'll keep working on this though.
Could you change the format to 0x%08x (instead of %d) ? This way it will be printed as hex, easier to read.
I played with this value and i got no lockup when i do some swapping : aabbccdd become bbaaccdd I do this in radeon_screen.c where the FBLOCATION register is read.
By the way ccdd are no revealent here because they are 0. I i got no lockup (with glxgears or one of my gl applications) i still see nothing (in fact the window is fill with some random pattern or memory garbage) and the fps drop to very low value (65fps with glxgears where i get 200 & more in software and expect 1000 & more with hardware :))
I also looked at the radeon driver in the Xorg tree and i notice that there seems to be byte swapping for MMIO register access. But when i try to do so for r300 dri i lockup the computer.
To see for byte swapping in xorg look at /xc/programs/Xserver/hw/xfree86/common/compiler.h There is the definition for MMIO_IN32 & MMIO_IN16 MMIO_OUT32 & MMIO_OUT16. If we are on ppc architecture thus macro are defined with byte swapping unless PPC_MMIO_IS_BE is defined. But all definition of MMIO are dependant of too much things...So i am not sure which version is used. I guess i have to make some print to test this...
So do you think there is somethings related with byte swapping MMIO ?
With applying byte swapping to get_short & get_int in r300_demo i successfully run all the demo except the --vb-triangles, --eb-triangles & --idx-triangles where i see nothing guess this is related to cp engine that need some byte swapping no ? Or does that Keith successfully running glxgears (even if they are drawn in wrong place) means that the vertex or elements buffer work properly on ppc ?
Dammm G5 are beautifull but they give some work :)
best, Jerome Glisse
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
