summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-04-21 19:09:54 +0100
committerKeith Whitwell <[email protected]>2008-04-21 19:12:08 +0100
commitd3db46eb8257c1b0cf823f1805ca00457be9aff3 (patch)
treeaa51face6607201e287f176ed54ad0efebd64cfc /src/gallium/auxiliary
parentb17e123a8f20239e8e1fc6816ccf115d9ec57471 (diff)
translate: fail on x86 rtasm fail
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/translate/translate_sse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c
index e587e5afece..f590d48b787 100644
--- a/src/gallium/auxiliary/translate/translate_sse.c
+++ b/src/gallium/auxiliary/translate/translate_sse.c
@@ -597,7 +597,12 @@ struct translate *translate_sse2_create( const struct translate_key *key )
goto fail;
p->gen_run = (run_func)x86_get_func(&p->linear_func);
+ if (p->gen_run == NULL)
+ goto fail;
+
p->gen_run_elts = (run_elts_func)x86_get_func(&p->elt_func);
+ if (p->gen_run_elts == NULL)
+ goto fail;
return &p->translate;