summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_tile_cache.h
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-07-16 14:14:32 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:16 +0100
commit3121484a8bde7af053fb627bd716be957fcef18c (patch)
treea53dffd0a3b75323f03eecdfba7b06f9095ad880 /src/gallium/drivers/llvmpipe/lp_tile_cache.h
parentc9a5930fe45a0a0299769bd2b672ca516d1bf39e (diff)
llvmpipe: remove backwards dependency from tilecache to llvmpipe
The tile cache is a utility, it shouldn't know anything about the entity which is making use of it (ie llvmpipe). Remove llvmpipe parameter to all the tilecache function calls, and also remove the need to keep a llvmpipe pointer in the sampler structs.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_tile_cache.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_tile_cache.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_tile_cache.h b/src/gallium/drivers/llvmpipe/lp_tile_cache.h
index 91e1466813..e82b4b856a 100644
--- a/src/gallium/drivers/llvmpipe/lp_tile_cache.h
+++ b/src/gallium/drivers/llvmpipe/lp_tile_cache.h
@@ -80,25 +80,21 @@ extern void
lp_tile_cache_unmap_transfers(struct llvmpipe_tile_cache *tc);
extern void
-lp_tile_cache_set_texture(struct pipe_context *pipe,
- struct llvmpipe_tile_cache *tc,
+lp_tile_cache_set_texture(struct llvmpipe_tile_cache *tc,
struct pipe_texture *texture);
extern void
-lp_flush_tile_cache(struct llvmpipe_context *llvmpipe,
- struct llvmpipe_tile_cache *tc);
+lp_flush_tile_cache(struct llvmpipe_tile_cache *tc);
extern void
lp_tile_cache_clear(struct llvmpipe_tile_cache *tc, const float *rgba,
uint clearValue);
extern struct llvmpipe_cached_tile *
-lp_get_cached_tile(struct llvmpipe_context *llvmpipe,
- struct llvmpipe_tile_cache *tc, int x, int y);
+lp_get_cached_tile(struct llvmpipe_tile_cache *tc, int x, int y);
extern const struct llvmpipe_cached_tile *
-lp_get_cached_tile_tex(struct llvmpipe_context *llvmpipe,
- struct llvmpipe_tile_cache *tc, int x, int y, int z,
+lp_get_cached_tile_tex(struct llvmpipe_tile_cache *tc, int x, int y, int z,
int face, int level);