diff options
author | Keith Whitwell <[email protected]> | 2009-07-16 14:14:32 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-29 09:21:16 +0100 |
commit | 3121484a8bde7af053fb627bd716be957fcef18c (patch) | |
tree | a53dffd0a3b75323f03eecdfba7b06f9095ad880 /src/gallium/drivers/llvmpipe/lp_context.c | |
parent | c9a5930fe45a0a0299769bd2b672ca516d1bf39e (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_context.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_context.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c index 66a6e791931..8341cc1bc11 100644 --- a/src/gallium/drivers/llvmpipe/lp_context.c +++ b/src/gallium/drivers/llvmpipe/lp_context.c @@ -73,8 +73,8 @@ llvmpipe_unmap_transfers(struct llvmpipe_context *lp) uint i; for (i = 0; i < lp->framebuffer.nr_cbufs; i++) - lp_flush_tile_cache(lp, lp->cbuf_cache[i]); - lp_flush_tile_cache(lp, lp->zsbuf_cache); + lp_flush_tile_cache(lp->cbuf_cache[i]); + lp_flush_tile_cache(lp->zsbuf_cache); for (i = 0; i < lp->framebuffer.nr_cbufs; i++) { lp_tile_cache_unmap_transfers(lp->cbuf_cache[i]); @@ -254,8 +254,6 @@ llvmpipe_create( struct pipe_screen *screen ) /* vertex shader samplers */ for (i = 0; i < PIPE_MAX_SAMPLERS; i++) { llvmpipe->tgsi.vert_samplers[i].base.get_samples = lp_get_samples_vertex; - llvmpipe->tgsi.vert_samplers[i].unit = i; - llvmpipe->tgsi.vert_samplers[i].lp = llvmpipe; llvmpipe->tgsi.vert_samplers[i].cache = llvmpipe->tex_cache[i]; llvmpipe->tgsi.vert_samplers_list[i] = &llvmpipe->tgsi.vert_samplers[i]; } @@ -263,8 +261,6 @@ llvmpipe_create( struct pipe_screen *screen ) /* fragment shader samplers */ for (i = 0; i < PIPE_MAX_SAMPLERS; i++) { llvmpipe->tgsi.frag_samplers[i].base.get_samples = lp_get_samples_fragment; - llvmpipe->tgsi.frag_samplers[i].unit = i; - llvmpipe->tgsi.frag_samplers[i].lp = llvmpipe; llvmpipe->tgsi.frag_samplers[i].cache = llvmpipe->tex_cache[i]; llvmpipe->tgsi.frag_samplers_list[i] = &llvmpipe->tgsi.frag_samplers[i]; } |