diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-10-22 09:37:26 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-10-22 09:37:26 -0600 |
commit | 70eb7996f265f3634dabda078f13d1be3533cc65 (patch) | |
tree | 30148a72c347274cafa3386accb22aae4c1f9c7a /src/mesa/pipe/softpipe/sp_state_sampler.c | |
parent | ec3bd21c465f27d0a8e313e00338109d21019fc0 (diff) |
Finish unifying the surface and texture tile caches.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state_sampler.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_state_sampler.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_sampler.c b/src/mesa/pipe/softpipe/sp_state_sampler.c index 4084e9163f..c00e815f2d 100644 --- a/src/mesa/pipe/softpipe/sp_state_sampler.c +++ b/src/mesa/pipe/softpipe/sp_state_sampler.c @@ -31,6 +31,8 @@ #include "sp_context.h" #include "sp_state.h" +#include "sp_tile_cache.h" + void * softpipe_create_sampler_state(struct pipe_context *pipe, @@ -72,5 +74,7 @@ softpipe_set_texture_state(struct pipe_context *pipe, assert(unit < PIPE_MAX_SAMPLERS); softpipe->texture[unit] = texture; /* ptr, not struct */ + sp_tile_cache_set_texture(softpipe->tex_cache[unit], texture); + softpipe->dirty |= SP_NEW_TEXTURE; } |