diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_atom_vs.c | 7 |
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 18be71367a2..8f1df80a7f7 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); } |