Re: [Mesa-dev] [PATCH] softpipe: set max cube texture size to 4Kx4K

2012-03-18 Thread Yuanhan Liu
On Sun, Mar 18, 2012 at 10:49:00AM -0600, Brian Paul wrote: > 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-s

[Mesa-dev] [PATCH] softpipe: set max cube texture size to 4Kx4K

2012-03-18 Thread Brian Paul
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. --- src/gallium/drivers/softpipe/sp_limits.h |1 + src/