diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-10-21 18:06:35 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-10-21 18:06:35 -0600 |
commit | b3204c2aff3f3d442ada04f241f352155a3af205 (patch) | |
tree | 3d793eda42903eec2d7cae2cb0cf16577fbaf6ef /src/mesa/pipe/softpipe/sp_tile_cache.h | |
parent | c2322333b8d1732f4c6d4b71ff5ee2ea772d3cb5 (diff) |
Start implementing cache routines for textures.
First step to consolidating surface/texture caching...
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_tile_cache.h')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_tile_cache.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_tile_cache.h b/src/mesa/pipe/softpipe/sp_tile_cache.h index 80bcac6904..9879b1821c 100644 --- a/src/mesa/pipe/softpipe/sp_tile_cache.h +++ b/src/mesa/pipe/softpipe/sp_tile_cache.h @@ -45,7 +45,8 @@ struct softpipe_tile_cache; struct softpipe_cached_tile { - int x, y; /** pos of tile in window coords */ + int x, y; /**< pos of tile in window coords */ + int z, face, level; /**< Extra texture indexes */ union { float color[TILE_SIZE][TILE_SIZE][4]; uint depth32[TILE_SIZE][TILE_SIZE]; @@ -66,6 +67,10 @@ sp_tile_cache_set_surface(struct softpipe_tile_cache *tc, struct softpipe_surface *sps); extern void +sp_tile_cache_set_texture(struct softpipe_tile_cache *tc, + struct pipe_mipmap_tree *texture); + +extern void sp_flush_tile_cache(struct softpipe_tile_cache *tc); extern void @@ -74,6 +79,10 @@ sp_clear_tile_cache(struct softpipe_tile_cache *tc, unsigned clearval); extern struct softpipe_cached_tile * sp_get_cached_tile(struct softpipe_tile_cache *tc, int x, int y); +extern struct softpipe_cached_tile * +sp_get_cached_tile_tex(struct softpipe_tile_cache *tc, int x, int y, int z, + int face, int level); + #endif /* SP_TILE_CACHE_H */ |