diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-03-19 09:52:08 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-03-19 09:52:08 -0600 |
commit | b5292b4d9967f3a3a35cd7f1909b46fab9179111 (patch) | |
tree | 7ff8c7dcfe9d4bc8b8804b51030033f5150eaaad /src | |
parent | 29054676a094c59b70cfec8b05da11741e53722c (diff) |
x86_init_func_size() returns int to indicate success/fail (bug 15119)
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/x86/rtasm/x86sse.c | 3 | ||||
-rw-r--r-- | src/mesa/x86/rtasm/x86sse.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/x86/rtasm/x86sse.c b/src/mesa/x86/rtasm/x86sse.c index 39c0e9b851..772471c723 100644 --- a/src/mesa/x86/rtasm/x86sse.c +++ b/src/mesa/x86/rtasm/x86sse.c @@ -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 ) diff --git a/src/mesa/x86/rtasm/x86sse.h b/src/mesa/x86/rtasm/x86sse.h index c2aa416492..f6282f5bd4 100644 --- a/src/mesa/x86/rtasm/x86sse.h +++ b/src/mesa/x86/rtasm/x86sse.h @@ -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 ); |