Re: [Dri-devel] i810/i810 MAX_TEXLEVELS ...

2003-08-14 Thread Dave Airlie
On Mon, 11 Aug 2003, Brian Paul wrote:

 
  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.

Thanks Brian,

I've checked a patch in to make I810_TEX_MAXLEVELS 11, as the context code
uses up to 11, I think i830 may suffer from a similiar issue but I don't
have one

Dave.

-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / [EMAIL PROTECTED]
pam_smb / Linux DECstation / Linux VAX / ILUG person



---
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/psa0013ave/direct;at.aspnet_072303_01/01
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [Dri-devel] i810/i810 MAX_TEXLEVELS ...

2003-08-14 Thread Brian Paul
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/psa0013ave/direct;at.aspnet_072303_01/01
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel