Implementing a better hash, removing state_tracker dependency from the cache.

Replacing mesa's main hash with one that handles collisions, moving state_tracker
related caching to the state tracker to keep cso cache independent of it. Cleanups.
This commit is contained in:
Zack Rusin
2007-09-17 07:56:56 -04:00
parent 9780327c5d
commit e16c045b83
10 changed files with 627 additions and 116 deletions

View File

@@ -35,6 +35,7 @@
#include "main/macros.h"
#include "shader/prog_instruction.h"
#include "st_atom.h"
#include "st_cache.h"
#include "st_context.h"
#include "st_cb_clear.h"
#include "st_cb_fbo.h"
@@ -49,8 +50,6 @@
#include "pipe/tgsi/mesa/mesa_to_tgsi.h"
#include "cso_cache/cso_cache.h"
#include "vf/vf.h"
@@ -297,7 +296,7 @@ clear_with_quad(GLcontext *ctx,
if (st->ctx->Color.DitherFlag)
blend.dither = 1;
}
const struct pipe_blend_state *state = cso_cached_blend_state(st, &blend);
const struct pipe_blend_state *state = st_cached_blend_state(st, &blend);
pipe->bind_blend_state(pipe, state);
}