On Tue, 18 Jan 2005, Benjamin Herrenschmidt wrote:
On Sat, 2005-01-15 at 17:29 +0100, Jerome Glisse wrote:
Yes, in r300_demo i need to know the physical address of the agp aperture and if i ask the card what is the physical address i get the good answer :) I suppose drmAgpBase give the good answer too but only on x86. Anyway i know too little on all this memory setup...I may have a false view of that.
What do you mean about physical address and what do you need it for ?
This is actually address that radeon card's MC controller thinks AGP is at. I called it "agp_physical" because on x86 it is the same as physical address of agp memory..
r300_demo uses it to computer texture addresses: texture_offset=agp_physical+offset
for textures in AGP space.
Again on the bus itself, it's at 0 (overlapping RAM for AGP cycles only though) which is what you put in AGP_BASE_ADDR, but the engine "sees" it at MC_FB_LOCATION which is usually set right above the framebuffer.
This is not right. MC_FB_LOCATION is where the engine thinks its *framebuffer* is at. Which is correct as DRI driver puts both textures and vertex buffer in the framebuffer.
r300_demo is simpler - it puts a texture into AGP space and instructs the card to access it from there.
The register the card thinks AGP space is at is MC_AGP_LOCATION and, AFAIK, it should not overlap MC_FB_LOCATION or things will get really screwed up.
best
Vladimir Dergachev
No and this why this work :) It use the linear AGP.Now i also get texture looking good with r300_demo, i will look at r300_driver see where is the prob.
Maybe r300_demo doesn't use hostdata blits for uploading the texture data?
Can you explain more ? You can't just map the linear AGP from it's physical address on uninorth.
Ben.
------------------------------------------------------- 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 Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
------------------------------------------------------- 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 Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel