Rune Petersen wrote:
Roland Scheidegger wrote:
Rune Petersen wrote:
Michel Dänzer wrote:
On Fri, 2005-05-27 at 20:48 +0200, Rune Petersen wrote:
Hi,
One more for good messure.
2048x2048 texturer are corrupted. half (1024x2048) is correct, the
rest is random data from memory.
Not being familiar with the r300 code, I can only guess, but it sounds
like the r300 driver still always uses a 1-byte format for texture
uploads and hits the size limit of the 2D engine. This was changed for
the other Radeon drivers when support for texture tiling was added.
Can you tell me when this was added? (might give me some ideas)
Before the texture tiling stuff (2005-02-10) when this code was
changed to no longer use always a 1-byte format there already was an
easier fix for exactly that problem, which still used 1-byte formats
but incremented the offset (2004-10-07).
That hack doesn't work, x (and y) for the image is 0, whick makes no
impact on the offset. It's bug #960.
Ah yes, I remember now, it only affected mip-maps. I think though the
maximum size anyone tested there was only 2048x1024, not 2048x2048, so
in fact the fix maybe wouldn't have worked on such 2048x2048x4 textures
without mipmpas neither. I don't think that size actually gets ever
announced on any radeon (r100/r200) card as the driver can only handle
128MB, with the crappy memory management only 70MB or so will be
available for textures which isn't enough to fit 4 (the default amount
of texture units announced) such textures with mipmaps, though you may
get that size announced with configuration. The new code should work
however in any case.
Roland
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel