summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_flush.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-07-16 14:14:32 +0100
committerJosé Fonseca <[email protected]>2009-08-29 09:21:16 +0100
commit3121484a8bde7af053fb627bd716be957fcef18c (patch)
treea53dffd0a3b75323f03eecdfba7b06f9095ad880 /src/gallium/drivers/llvmpipe/lp_flush.c
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_flush.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_flush.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_flush.c b/src/gallium/drivers/llvmpipe/lp_flush.c
index 2bb6414b3f4..f815e79003c 100644
--- a/src/gallium/drivers/llvmpipe/lp_flush.c
+++ b/src/gallium/drivers/llvmpipe/lp_flush.c
@@ -52,17 +52,17 @@ llvmpipe_flush( struct pipe_context *pipe,
if (flags & PIPE_FLUSH_TEXTURE_CACHE) {
for (i = 0; i < llvmpipe->num_textures; i++) {
- lp_flush_tile_cache(llvmpipe, llvmpipe->tex_cache[i]);
+ lp_flush_tile_cache(llvmpipe->tex_cache[i]);
}
}
if (flags & PIPE_FLUSH_RENDER_CACHE) {
for (i = 0; i < llvmpipe->framebuffer.nr_cbufs; i++)
if (llvmpipe->cbuf_cache[i])
- lp_flush_tile_cache(llvmpipe, llvmpipe->cbuf_cache[i]);
+ lp_flush_tile_cache(llvmpipe->cbuf_cache[i]);
if (llvmpipe->zsbuf_cache)
- lp_flush_tile_cache(llvmpipe, llvmpipe->zsbuf_cache);
+ lp_flush_tile_cache(llvmpipe->zsbuf_cache);
/* Need this call for hardware buffers before swapbuffers.
*