translate: fail on x86 rtasm fail
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 21 Apr 2008 18:09:54 +0000 (19:09 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 21 Apr 2008 18:12:08 +0000 (19:12 +0100)
src/gallium/auxiliary/translate/translate_sse.c

index e587e5a..f590d48 100644 (file)
@@ -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;