diff options
author | Brian Paul <brianp@vmware.com> | 2010-12-02 10:08:33 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-12-02 10:10:05 -0700 |
commit | af4f75c8fe1c53b8def966f480e7fda8021f1b63 (patch) | |
tree | d1246f2487f2fd1e6c204d152739e4186ad0eaf8 /src/gallium/drivers/softpipe/sp_tex_tile_cache.c | |
parent | 4b08f35487fa439fd9ca4d653d3a146c3dc09c1c (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.c | 3 |
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; |