Fix linux-dri-x86 target.
authorMichel Dänzer <michel@tungstengraphics.com>
Tue, 18 Sep 2007 20:49:43 +0000 (21:49 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Tue, 18 Sep 2007 20:49:43 +0000 (21:49 +0100)
src/mesa/state_tracker/st_atom_vs.c

index 18be713..8f1df80 100644 (file)
@@ -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);
    }