diff options
author | Keith Whitwell <[email protected]> | 2005-10-18 13:29:59 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-10-18 13:29:59 +0000 |
commit | 005469005df6ba5f80e382d5371c6d069c27738b (patch) | |
tree | 3724212c691417d4dc08213d02b217d346cb25c3 /src/mesa/main/imports.h | |
parent | 05e1a49ab4b0d34aba4bdf55ed7ffe5b6d4411f8 (diff) |
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/main/imports.h')
-rw-r--r-- | src/mesa/main/imports.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 56ba114d9aa..24849330254 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -723,6 +723,15 @@ _mesa_exit( int status ); extern void _mesa_init_default_imports( __GLimports *imports, void *driverCtx ); +/* Allocate executable memory for codegen: + */ +extern void * +_mesa_exec_malloc( GLuint size ); + +extern void +_mesa_exec_free( void *addr ); + + #ifdef __cplusplus } |