diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-07-16 14:14:32 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-08-29 09:21:16 +0100 |
commit | 3121484a8bde7af053fb627bd716be957fcef18c (patch) | |
tree | a53dffd0a3b75323f03eecdfba7b06f9095ad880 /src/gallium/drivers/llvmpipe/lp_tex_sample.h | |
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_tex_sample.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_tex_sample.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_tex_sample.h b/src/gallium/drivers/llvmpipe/lp_tex_sample.h index 8d380b6e28..08f1451331 100644 --- a/src/gallium/drivers/llvmpipe/lp_tex_sample.h +++ b/src/gallium/drivers/llvmpipe/lp_tex_sample.h @@ -39,8 +39,9 @@ struct lp_shader_sampler { struct tgsi_sampler base; /**< base class */ - uint unit; - struct llvmpipe_context *lp; + const struct pipe_texture *texture; + const struct pipe_sampler_state *sampler; + struct llvmpipe_tile_cache *cache; }; |