x86_init_func_size() returns int to indicate success/fail (bug 15119)
authorBrian <brian.paul@tungstengraphics.com>
Wed, 19 Mar 2008 15:52:08 +0000 (09:52 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 19 Mar 2008 15:52:08 +0000 (09:52 -0600)
src/mesa/x86/rtasm/x86sse.c
src/mesa/x86/rtasm/x86sse.h

index 39c0e9b..772471c 100644 (file)
@@ -1161,11 +1161,12 @@ void x86_init_func( struct x86_function *p )
    p->csr = p->store;
 }
 
-void x86_init_func_size( struct x86_function *p, unsigned code_size )
+int x86_init_func_size( struct x86_function *p, unsigned code_size )
 {
    p->size = code_size;
    p->store = _mesa_exec_malloc(code_size);
    p->csr = p->store;
+   return p->store != NULL;
 }
 
 void x86_release_func( struct x86_function *p )
index c2aa416..f6282f5 100644 (file)
@@ -80,7 +80,7 @@ enum sse_cc {
 
 
 void x86_init_func( struct x86_function *p );
-void x86_init_func_size( struct x86_function *p, unsigned code_size );
+int x86_init_func_size( struct x86_function *p, unsigned code_size );
 void x86_release_func( struct x86_function *p );
 void (*x86_get_func( struct x86_function *p ))( void );