summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom.c
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2010-02-08 19:27:58 +0100
committerKristian Høgsberg <[email protected]>2010-02-16 10:38:50 -0500
commitf845e4ff1bf4e7e2f804024157494a12eedec174 (patch)
tree07edb3160feed5280a27feba17a6c801c780637b /src/mesa/state_tracker/st_atom.c
parent88a560691b904cc8eacda62d9bf80987d3c430c1 (diff)
st/dri2: Use event-driven buffer validation.
Diffstat (limited to 'src/mesa/state_tracker/st_atom.c')
-rw-r--r--src/mesa/state_tracker/st_atom.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom.c b/src/mesa/state_tracker/st_atom.c
index 73df44d1988..6a7ebff6cad 100644
--- a/src/mesa/state_tracker/st_atom.c
+++ b/src/mesa/state_tracker/st_atom.c
@@ -35,7 +35,8 @@
#include "st_cb_bitmap.h"
#include "st_program.h"
-
+#include "pipe/p_context.h"
+
/**
* This is used to initialize st->atoms[].
@@ -135,6 +136,10 @@ void st_validate_state( struct st_context *st )
check_program_state( st );
+ if (st->pipe->screen->update_buffer)
+ st->pipe->screen->update_buffer(st->pipe->screen,
+ st->pipe->priv);
+
if (state->st == 0)
return;