diff options
author | Keith Whitwell <[email protected]> | 2008-04-21 19:09:54 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-04-21 19:12:08 +0100 |
commit | d3db46eb8257c1b0cf823f1805ca00457be9aff3 (patch) | |
tree | aa51face6607201e287f176ed54ad0efebd64cfc /src | |
parent | b17e123a8f20239e8e1fc6816ccf115d9ec57471 (diff) |
translate: fail on x86 rtasm fail
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/translate/translate_sse.c | 5 |
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; |