Dave Airlie wrote:
I'm running my own internal application (lots of texturing) and I'm
crashing out in the i810UploadTexImages, trying to upload a level 11
mipmap, but the i810tex.h has MAX_TEXLEVELS set to 10, so of course I'm
corrupting memory earlier when assigning the pointers in i810SetTexImages,

the i830 probably has the same issue,

so fix a) is to check the number of levels isn't greater than
MAX_TEXLEVELS at some stage,.. how do I decide which level to dump? just
dump the last one?

or b) up MAX_TEXLEVELS - but I assume this is hardware limitation, I'll
read my i810 data sheet.. but Keith do you remember?


The ctx->Const.MaxTextureLevels field should be set to the appropriate value during context initialization in the driver. Looks like this is being done at round line 162 of i810context.c. 11 levels implies a max texture size of 1024x1024.

Core Mesa will use ctx->Const.MaxTextureLevels to check that the user doesn't try to exceed that value.

-Brian



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to