Ok, to continue on this :) Stephane, you were right. The z buffer clearing causes the problem (or at least part of it). The y direction needs to be multiplied by 4, the x needs to be multiplied by 2. I tried 3 for the y direction also, which seems to reduce the problem to the lower 10-15% of my screen, so i'm wondering if 4x isn't too much. I've also tried increasing the screen size, and the problem seems to be gone (e.g I can run a full screen glxgears seeing everything, although the framerate has dropped from about 1400 to 900... Considering it needs to clear more that would be expected I think). Note that the changes I made were in the radeon_cp_dispatch_clear routine, near line 850. That said, I've noticed several times that if the mouse is moved over a glxgears screen (the moving part of the wheels) the system is liable to hang. This hangup gets less if AGPMode "4" is removed, FastWrite is disabled or page flipping is disabled (note, it gets less e.g it hangs less quick, but it still will hang).
This aside, I tested again with nwn, heretic2 and ut2004. Heretic 2 seems to be rid of all problems, so that's good I think :). ut2004 however is a different matter. Entering the main menu everything looks ok. No problems at all. Entering for example the settings screen and a lot of corruption shows (again, I can make pictures of this if there is interest for it). As for NWN, the main menu seems to look ok, aside from the load button, which isn't completely a rectangle as it should be. Other than that I still have to test more.


Any suggestions where next I can look to help solve ?

Hi guys,

I tried testing the HyperZ patch, but I ran into some problems. First of all, my configuration is Xorg 6.8.0 pulled out of CVS on 20/10/2004, with the HyperZ patch installed (found at the following links : http://www.mail-archive.com/[email protected]/msg20381.html, and http://www.mail-archive.com/[email protected]/msg20381.html), including the R100 readpixel (r100-readpixels-3.patch) acceleration patch against DRM/MESA (pulled out of CVS on 26/11/2004). AGPMode is set to 4, AGPFastWrite is disabled (also tried enabled), pageflip is enabled. Videoram is set to 128MB (both in the BIOS and in xorg.conf). It is used on a Compaq Pressario 2160AE with 512 MB RAM (Slackware 10.0 if this is relevant).

The problems are as follows:
glxgears the window looks like to be divided into 4 squares, of which only the top left one is visible. All other 3 are not visible, although sometimes it looks like some lines appear. Framerate is about 1300-1400fps. When the window is moved around however the top right part can be made visible, depending on where it is moved.



You probably need either :
- fix the tile number calculation in the most recent patch (prefered way :) - use an older version from my site which doesn't include the newer tile calculation code.




Trying NWN, the screen shows corruption on startup. Of the main menu only the top half is visible. This same problem occurs when starting up heretic2. All screens there seem ok until the game itself has been loaded (first level). Also here only the top half of the screen is visible. The lower half seems to contain whatever the last menu showed. Starting up ut2004 gives again the same problem. Only the top half of the menu demo (the demon with the chaingun) will show up. The lower half is invisible. When the main menu pops up, corruption can be seen.


I hope this is detailed enough to be of help. I also made pictures of all of this, but since it's about 320KB for all pictures I wasn't sure if I should send this straight on the list. If anyone wants them I can send them.

Also is there some documentation on how the internals work, and what is located where ? I'd like to read up on it a little (would make debugging easier I think). At the moment I'm not sure how things work yet....



Well, the problem you have is located in drm/shared/radeon_state.c, in the "hyper z clear" part. Find the tile number calculation code and multiply by a factor of 2.


Stephane



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to