On Sat, 11 Mar 2006 22:48:49 +0100
Rune Petersen <[EMAIL PROTECTED]> wrote:

> Aapo Tahkola wrote:
> > On Fri, 10 Mar 2006 21:58:50 +0100
> > Rune Petersen <[EMAIL PROTECTED]> wrote:
> >>
> >>The best images this time were in the menu (grows upwards this time):
> >>http://megahurts.dk/rune/stuff/nwn_menu_1.png
> >>http://megahurts.dk/rune/stuff/nwn_menu_2.png
> >>http://megahurts.dk/rune/stuff/nwn_menu_3.png
> > 
> > 
> > Get xf86-video-ati and drm with Ben's fixes and try again.
> > You might see it go upwards or downwards depending on how they are rending.
> > nwn background image is made up of four textures sized 512x512, 512x88, 
> > 288x512, 288x88.
> > 
> 
> I assumed I had a snapshot with all Ben's changes, I was wrong. updating 
> xf86-video-ati cured the corruption then starting nwn the second time.
> 
> As for the in-game corruption its a little different now. the second map 
> loaded still have corrupted textures (slightly more then before). if I 
> return to the first map and enter the second map again there is no 
> corruption apart for some green on the weapons. all subsequent maps load 
> with no trouble.
> 
> there might still be trouble with maps that needs textures not already 
> loaded.

All this is just a symptom of dri tex heap manager. nwn will reload textures 
but they will be given different locations on vram.
You can print out t->offset at around line 506 of r300_texmem.c if you are 
interested in seeing how it behaves.
But if you do keep in mind that you need to do it after UNLOCK_HARDWARE or else 
bad things will happen.

You should check that Ben's fix is kicking in by looking for message saying: 
"Setting GART location based on new memory map" in dmesg.

If you still see problems with it enabled you can confirm GART overlapping by 
loading drm.ko with DEBUG=1 (AFAIK) and compairing dev_priv->gart_vm_start 
against dev_priv->fb_location and dev_priv->fb_size .
DRM doesnt print these values but you can calculated it based on Xorg log.

Find line that says:
(II) RADEON(0): Will use x kb for textures at offset x
and compaire upper bound of that against dev_priv->gart_vm_start.

-- 
Aapo Tahkola


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to