Eric Anholt wrote:
> idr said that in his review swrast was ready for it, and the 965 driver is
> advertising it already though it has been resulting in many crashes due to
> arrays using these defines not being big enough.
> ---
>  src/mesa/main/config.h |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h
> index c3feffd..9d0cd18 100644
> --- a/src/mesa/main/config.h
> +++ b/src/mesa/main/config.h
> @@ -101,16 +101,16 @@
>  #define MAX_COLOR_TABLE_SIZE 256
>  
>  /** Number of 1D/2D texture mipmap levels */
> -#define MAX_TEXTURE_LEVELS 12
> +#define MAX_TEXTURE_LEVELS 13
>  
>  /** Number of 3D texture mipmap levels */
>  #define MAX_3D_TEXTURE_LEVELS 9
>  
>  /** Number of cube texture mipmap levels - GL_ARB_texture_cube_map */
> -#define MAX_CUBE_TEXTURE_LEVELS 12
> +#define MAX_CUBE_TEXTURE_LEVELS 13
>  
>  /** Maximum rectangular texture size - GL_NV_texture_rectangle */
> -#define MAX_TEXTURE_RECT_SIZE 2048
> +#define MAX_TEXTURE_RECT_SIZE 4096
>  
>  /** Maximum number of layers in a 1D or 2D array texture - 
> GL_MESA_texture_array */
>  #define MAX_ARRAY_TEXTURE_LAYERS 64
> @@ -166,7 +166,7 @@
>  #define MAX_TEXTURE_MAX_ANISOTROPY 16.0
>  
>  /** For GL_EXT_texture_lod_bias (typically MAX_TEXTURE_LEVELS - 1) */
> -#define MAX_TEXTURE_LOD_BIAS 11.0
> +#define MAX_TEXTURE_LOD_BIAS 12.0
>  
>  /** For GL_ARB_vertex_program */
>  /*...@{*/


This should be fine.  The max viewport size has been 4Kx4K for a while 
now so there shouldn't be any problems there (render to texture, etc).

I think I'll add some additional assertions to make sure drivers don't 
exceed Mesa's internal limits in the future...

-Brian


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to