summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-31 11:08:07 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-31 11:08:07 -0600
commitd775509fb7736aac2d4c7903a93c0d7cb8015a91 (patch)
tree4b4c246328400b57ca92edde71416980031cf24a
parent2860f609949ced58caeb4828e7d2a34439d767da (diff)
plug st_invalidate_state() into ctx->Driver.UpdateState
Start lifting Mesa stuff up out of winsys/driver code.
-rw-r--r--src/mesa/state_tracker/st_context.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index c7398233d8..95c5eec26e 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -51,12 +51,20 @@
#include "pipe/cso_cache/cso_cache.h"
+/**
+ * Called via ctx->Driver.UpdateState()
+ */
void st_invalidate_state(GLcontext * ctx, GLuint new_state)
{
struct st_context *st = st_context(ctx);
st->dirty.mesa |= new_state;
st->dirty.st |= ST_NEW_MESA;
+
+ /* This is the only core Mesa module we depend upon.
+ * No longer use swrast, swsetup, tnl.
+ */
+ _vbo_InvalidateState(ctx, new_state);
}
@@ -149,4 +157,6 @@ void st_init_driver_functions(struct dd_function_table *functions)
st_init_texture_functions(functions);
st_init_flush_functions(functions);
st_init_string_functions(functions);
+
+ functions->UpdateState = st_invalidate_state;
}