diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-12-07 10:21:56 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-12-07 10:21:56 -0700 |
commit | 4c90dc7027a42e046662d52c7300f0eb68a6cf3f (patch) | |
tree | d7d7aacc111ac30c5d1b1e8e35170341a563b5c4 /src/mesa/pipe/softpipe/sp_state_sampler.c | |
parent | 94a3cb078db2e09716604923c02e3a975ae318ae (diff) |
Move struct softpipe_texture definition into sp_texture.h
Also, added softpipe_texture() cast wrapper.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state_sampler.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_state_sampler.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_sampler.c b/src/mesa/pipe/softpipe/sp_state_sampler.c index e71b9159e3..173901f04e 100644 --- a/src/mesa/pipe/softpipe/sp_state_sampler.c +++ b/src/mesa/pipe/softpipe/sp_state_sampler.c @@ -32,6 +32,7 @@ #include "pipe/p_util.h" #include "sp_context.h" #include "sp_state.h" +#include "sp_texture.h" #include "sp_tile_cache.h" @@ -73,7 +74,7 @@ softpipe_set_texture_state(struct pipe_context *pipe, struct softpipe_context *softpipe = softpipe_context(pipe); assert(unit < PIPE_MAX_SAMPLERS); - softpipe->texture[unit] = (struct softpipe_texture *)texture; /* ptr, not struct */ + softpipe->texture[unit] = softpipe_texture(texture); /* ptr, not struct */ sp_tile_cache_set_texture(softpipe->tex_cache[unit], texture); |