diff options
author | Zack Rusin <zack@tungstengraphics.com> | 2008-01-04 10:01:32 -0500 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2008-01-04 10:01:32 -0500 |
commit | 6f012904318311207a20bbf586f1a9f9f8b7fc20 (patch) | |
tree | 08a474dc3edfb6cc8c097fd7d9da4652974704df /src/mesa/pipe/draw | |
parent | 9789c301b476b1127f847144fd5c8313e6ba8be8 (diff) |
llvm: if llvm is enabled don't even try to use sse for vs
Diffstat (limited to 'src/mesa/pipe/draw')
-rw-r--r-- | src/mesa/pipe/draw/draw_vertex_shader.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_shader.c b/src/mesa/pipe/draw/draw_vertex_shader.c index 240149118f..c2e038453e 100644 --- a/src/mesa/pipe/draw/draw_vertex_shader.c +++ b/src/mesa/pipe/draw/draw_vertex_shader.c @@ -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; |