From: Keith Whitwell Date: Mon, 21 Apr 2008 18:09:54 +0000 (+0100) Subject: translate: fail on x86 rtasm fail X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3db46eb8257c1b0cf823f1805ca00457be9aff3;p=mesa.git translate: fail on x86 rtasm fail --- 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;