summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-09-18 21:49:43 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2007-09-18 21:49:43 +0100
commitd39dde6ed4ab1927d5b9992d6cc7414e7fa236e8 (patch)
treebf9cc09f8d2bd65d6d3c8d33a187587111f5bccf
parent6fbbeed690c7f9aa0a97fdf64c8c57d1d79e7c33 (diff)
Fix linux-dri-x86 target.
-rw-r--r--src/mesa/state_tracker/st_atom_vs.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/state_tracker/st_atom_vs.c b/src/mesa/state_tracker/st_atom_vs.c
index 18be71367a..8f1df80a7f 100644
--- a/src/mesa/state_tracker/st_atom_vs.c
+++ b/src/mesa/state_tracker/st_atom_vs.c
@@ -77,8 +77,9 @@ static void compile_vs( struct st_context *st )
#if defined(USE_X86_ASM) || defined(SLANG_X86)
tgsi_emit_sse2(
- vp->vs.tokens,
+ vp->tokens,
&vp->sse2_program );
+ cached->executable = (void *) x86_get_func( &vp->sse2_program );
#endif
vp->dirty = 0;
@@ -111,10 +112,6 @@ static void update_vs( struct st_context *st )
if (vp->dirty)
compile_vs( st );
-#if defined(USE_X86_ASM) || defined(SLANG_X86)
- st->vp->vs.executable = (void *) x86_get_func( &vp->sse2_program );
-#endif
-
st->state.vs = st->vp->vs;
st->pipe->bind_vs_state(st->pipe, st->state.vs);
}