summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_tex_tile_cache.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-12-02 10:08:33 -0700
committerBrian Paul <brianp@vmware.com>2010-12-02 10:10:05 -0700
commitaf4f75c8fe1c53b8def966f480e7fda8021f1b63 (patch)
treed1246f2487f2fd1e6c204d152739e4186ad0eaf8 /src/gallium/drivers/softpipe/sp_tex_tile_cache.c
parent4b08f35487fa439fd9ca4d653d3a146c3dc09c1c (diff)
softpipe: increase max texture size to 16K
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_tex_tile_cache.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_tex_tile_cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_tile_cache.c b/src/gallium/drivers/softpipe/sp_tex_tile_cache.c
index 7c97539fc0d..1393164150e 100644
--- a/src/gallium/drivers/softpipe/sp_tex_tile_cache.c
+++ b/src/gallium/drivers/softpipe/sp_tex_tile_cache.c
@@ -48,6 +48,9 @@ sp_create_tex_tile_cache( struct pipe_context *pipe )
struct softpipe_tex_tile_cache *tc;
uint pos;
+ /* make sure max texture size works */
+ assert((TILE_SIZE << TEX_ADDR_BITS) >= (1 << (SP_MAX_TEXTURE_2D_LEVELS-1)));
+
tc = CALLOC_STRUCT( softpipe_tex_tile_cache );
if (tc) {
tc->pipe = pipe;