diff options
author | Brian Paul <brianp@vmware.com> | 2010-12-02 08:20:08 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-12-02 10:09:03 -0700 |
commit | 4b08f35487fa439fd9ca4d653d3a146c3dc09c1c (patch) | |
tree | 35fed9d63a68b7ec4c065245d07acc3cfe848796 /src/mesa/main/mtypes.h | |
parent | 23390e2f5cf1050f98c70c8603e374191e7d84e7 (diff) |
mesa: raise max texture sizes to 16K
This allows 16K x 16K 2D textures, for example, but we don't want to
allow that for 3D textures. The new gl_constants::MaxTextureMBytes
field is used to prevent allocating too large of texture image.
This allows a 16K x 32 x 32 3D texture, for example, but prevents 16K^3.
Drivers can override this limit. The default is currently 1GB.
Apps should use the proxy texture mechanism to determine the actual
max texture size.
Diffstat (limited to 'src/mesa/main/mtypes.h')
-rw-r--r-- | src/mesa/main/mtypes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 82495714f2..1c549a8e24 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2567,6 +2567,7 @@ struct gl_program_constants */ struct gl_constants { + GLint MaxTextureMbytes; /**< Max memory per image, in MB */ GLint MaxTextureLevels; /**< Max mipmap levels. */ GLint Max3DTextureLevels; /**< Max mipmap levels for 3D textures */ GLint MaxCubeTextureLevels; /**< Max mipmap levels for cube textures */ |