[Mesa-dev] [PATCH] mesa: raise maximum viewport and texture size to 8192

Marek Olšák maraeo at gmail.com
Wed Nov 24 04:23:08 PST 2010


In order to be able to create and render to textures of size 8192x8192
on r600 and nv50, including 3D textures like 8192x4x4.

Two new piglit tests have been added to test this: fbo-maxsize and
tex3d-maxsize.

Driver status:
  swrast passes fbo-maxsize and segfaults in tex3d-maxsize.
  softpipe and r300g pass both.
  (r300g returns GL_OUT_OF_MEMORY in tex3d-maxsize).

Cc: Brian Paul <brianp at vmware.com>
Signed-off-by: Marek Olšák <maraeo at gmail.com>
---
 src/mesa/main/config.h |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h
index 0f2d1a8..5388069 100644
--- a/src/mesa/main/config.h
+++ b/src/mesa/main/config.h
@@ -98,16 +98,16 @@
 #define MAX_COLOR_TABLE_SIZE 256
 
 /** Number of 1D/2D texture mipmap levels */
-#define MAX_TEXTURE_LEVELS 13
+#define MAX_TEXTURE_LEVELS 14
 
 /** Number of 3D texture mipmap levels */
-#define MAX_3D_TEXTURE_LEVELS 9
+#define MAX_3D_TEXTURE_LEVELS 14
 
 /** Number of cube texture mipmap levels - GL_ARB_texture_cube_map */
-#define MAX_CUBE_TEXTURE_LEVELS 13
+#define MAX_CUBE_TEXTURE_LEVELS 14
 
 /** Maximum rectangular texture size - GL_NV_texture_rectangle */
-#define MAX_TEXTURE_RECT_SIZE 4096
+#define MAX_TEXTURE_RECT_SIZE 8192
 
 /** Maximum number of layers in a 1D or 2D array texture - GL_MESA_texture_array */
 #define MAX_ARRAY_TEXTURE_LAYERS 64
@@ -140,11 +140,11 @@
  */
 
 #ifndef MAX_WIDTH
-#   define MAX_WIDTH 4096
+#   define MAX_WIDTH 8192
 #endif
 /** Maximum viewport/image height */
 #ifndef MAX_HEIGHT
-#   define MAX_HEIGHT 4096
+#   define MAX_HEIGHT 8192
 #endif
 
 /** Maxmimum size for CVA.  May be overridden by the drivers.  */
@@ -168,7 +168,7 @@
 #define MAX_TEXTURE_MAX_ANISOTROPY 16.0
 
 /** For GL_EXT_texture_lod_bias (typically MAX_TEXTURE_LEVELS - 1) */
-#define MAX_TEXTURE_LOD_BIAS 12.0
+#define MAX_TEXTURE_LOD_BIAS 13.0
 
 /** For any program target/extension */
 /*@{*/
-- 
1.7.0.4



More information about the mesa-dev mailing list