diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2005-10-18 13:29:59 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2005-10-18 13:29:59 +0000 |
commit | 005469005df6ba5f80e382d5371c6d069c27738b (patch) | |
tree | 3724212c691417d4dc08213d02b217d346cb25c3 /src/mesa/x86/rtasm | |
parent | 05e1a49ab4b0d34aba4bdf55ed7ffe5b6d4411f8 (diff) | |
download | external_mesa3d-005469005df6ba5f80e382d5371c6d069c27738b.zip external_mesa3d-005469005df6ba5f80e382d5371c6d069c27738b.tar.gz external_mesa3d-005469005df6ba5f80e382d5371c6d069c27738b.tar.bz2 |
Add _mesa_exec_malloc() and _mesa_exec_free() for allocating
executable memory. Based on Thomas Hellstrom's patch.
TODO: glapi.c also needs this, but cannot access this code.
Diffstat (limited to 'src/mesa/x86/rtasm')
-rw-r--r-- | src/mesa/x86/rtasm/x86sse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/x86/rtasm/x86sse.c b/src/mesa/x86/rtasm/x86sse.c index 40ffc03..0c9ffe2 100644 --- a/src/mesa/x86/rtasm/x86sse.c +++ b/src/mesa/x86/rtasm/x86sse.c @@ -971,13 +971,13 @@ struct x86_reg x86_fn_arg( struct x86_function *p, void x86_init_func( struct x86_function *p ) { - p->store = _mesa_malloc(1024); + p->store = _mesa_exec_malloc(1024); p->csr = p->store; } void x86_release_func( struct x86_function *p ) { - _mesa_free(p->store); + _mesa_exec_free(p->store); } |