diff options
author | Brian Paul <[email protected]> | 2012-03-18 10:45:11 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-03-20 08:23:32 -0600 |
commit | 2cbccfdcb09322f5711cff995f9a2953af355d35 (patch) | |
tree | 33928f216b8798471b85026a161bd569deb393ed /src/gallium/drivers/softpipe/sp_limits.h | |
parent | 73fd269d2f5aa2a0b9bc03ef904b81e263e3cc37 (diff) |
softpipe: set max cube texture size to 4Kx4K
The max size was 16Kx16K so a 4 byte/pixel, six-sided cube would require
6 GBytes of memory. If mipmapped, 8 GB. Reduce the max size to 4K to
make the total size more reasonable.
Fixes a crash with the new piglit max-texture-size test.
Reviewed-by: Yuanhan Liu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_limits.h')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_limits.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_limits.h b/src/gallium/drivers/softpipe/sp_limits.h index a7a24c98d57..ada5c0c7abb 100644 --- a/src/gallium/drivers/softpipe/sp_limits.h +++ b/src/gallium/drivers/softpipe/sp_limits.h @@ -32,6 +32,7 @@ #define SP_MAX_TEXTURE_2D_LEVELS 15 /* 16K x 16K */ #define SP_MAX_TEXTURE_3D_LEVELS 9 /* 512 x 512 x 512 */ +#define SP_MAX_TEXTURE_CUBE_LEVELS 13 /* 4K x 4K */ /** Max surface size */ |