Finish unifying the surface and texture tile caches.

This commit is contained in:
Brian
2007-10-22 09:37:26 -06:00
parent ec3bd21c46
commit 70eb7996f2
8 changed files with 72 additions and 118 deletions

View File

@@ -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;
}