llvm: if llvm is enabled don't even try to use sse for vs
authorZack Rusin <zack@tungstengraphics.com>
Fri, 4 Jan 2008 15:01:32 +0000 (10:01 -0500)
committerZack Rusin <zack@tungstengraphics.com>
Fri, 4 Jan 2008 15:01:32 +0000 (10:01 -0500)
src/mesa/pipe/draw/draw_vertex_shader.c

index 240149118fc3fc971102fc7b8ee1f6c013214771..c2e038453ec6dfecf35a7d77ba7225fa67aea4f7 100644 (file)
@@ -245,15 +245,6 @@ draw_create_vertex_shader(struct draw_context *draw,
 
    vs->state = shader;
 
-#if defined(__i386__) || defined(__386__)
-   if (draw->use_sse) {
-      /* cast-away const */
-      struct pipe_shader_state *sh = (struct pipe_shader_state *) shader;
-
-      x86_init_func( &vs->sse2_program );
-      tgsi_emit_sse2( (struct tgsi_token *) sh->tokens, &vs->sse2_program );
-   }
-#endif
 #ifdef MESA_LLVM
    vs->llvm_prog = gallivm_from_tgsi(shader->tokens, GALLIVM_VS);
    draw->engine = gallivm_global_cpu_engine();
@@ -263,6 +254,14 @@ draw_create_vertex_shader(struct draw_context *draw,
    else {
       gallivm_cpu_jit_compile(draw->engine, vs->llvm_prog);
    }
+#elif defined(__i386__) || defined(__386__)
+   if (draw->use_sse) {
+      /* cast-away const */
+      struct pipe_shader_state *sh = (struct pipe_shader_state *) shader;
+
+      x86_init_func( &vs->sse2_program );
+      tgsi_emit_sse2( (struct tgsi_token *) sh->tokens, &vs->sse2_program );
+   }
 #endif
 
    return vs;