summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-05-03 09:53:12 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-05-03 09:53:12 +0100
commitd44c8ee568878899e4ce5d8e1d0fcf523aa62199 (patch)
tree9df79eb2426c22ebf6a82533fab5e197791d1e0e /src/gallium
parent738cb502371097fa6fb25f397a3cbcd6a5db020c (diff)
downloadexternal_mesa3d-d44c8ee568878899e4ce5d8e1d0fcf523aa62199.zip
external_mesa3d-d44c8ee568878899e4ce5d8e1d0fcf523aa62199.tar.gz
external_mesa3d-d44c8ee568878899e4ce5d8e1d0fcf523aa62199.tar.bz2
draw: Disable rtasm compilation when using LLVM.
Saves time and trouble.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/draw/draw_vs.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs.c b/src/gallium/auxiliary/draw/draw_vs.c
index c2832ee..b9db886 100644
--- a/src/gallium/auxiliary/draw/draw_vs.c
+++ b/src/gallium/auxiliary/draw/draw_vs.c
@@ -85,18 +85,22 @@ struct draw_vertex_shader *
draw_create_vertex_shader(struct draw_context *draw,
const struct pipe_shader_state *shader)
{
- struct draw_vertex_shader *vs;
+ struct draw_vertex_shader *vs = NULL;
if (draw->dump_vs) {
tgsi_dump(shader->tokens, 0);
}
- vs = draw_create_vs_sse( draw, shader );
- if (!vs) {
+ if (!draw->pt.middle.llvm) {
+#if defined(PIPE_ARCH_X86)
+ vs = draw_create_vs_sse( draw, shader );
+#elif defined(PIPE_ARCH_PPC)
vs = draw_create_vs_ppc( draw, shader );
- if (!vs) {
- vs = draw_create_vs_exec( draw, shader );
- }
+#endif
+ }
+
+ if (!vs) {
+ vs = draw_create_vs_exec( draw, shader );
}
if (vs)