Module: Mesa Branch: master Commit: 6a3d77e13dbae17000e35ce16023532200e68d09 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a3d77e13dbae17000e35ce16023532200e68d09
Author: José Fonseca <[email protected]> Date: Thu Mar 14 11:44:21 2013 +0000 softpipe: Shrink context size. - each softpipe_tex_tile_cache 50*64*64*4*4 = 3,276,800 bytes - each softpipe_context has 3*32 softpipe_tex_tile_cache, i.e, each softpipe context is 314,572,800 bytes, i.e, 300MB That is, in a 32bits process (around 3GB virtual memory max), we can only fit 10 contexts. This change is a short-term hack to shrink the context size. Longer term we'll need to change how the texture cache works. Reviewed-by: Brian Paul <[email protected]> --- src/gallium/drivers/softpipe/sp_tex_tile_cache.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_tex_tile_cache.h b/src/gallium/drivers/softpipe/sp_tex_tile_cache.h index 09e0f46..31f21bf 100644 --- a/src/gallium/drivers/softpipe/sp_tex_tile_cache.h +++ b/src/gallium/drivers/softpipe/sp_tex_tile_cache.h @@ -73,7 +73,7 @@ struct softpipe_tex_cached_tile } data; }; -#define NUM_ENTRIES 50 +#define NUM_ENTRIES 4 struct softpipe_tex_tile_cache { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
