Fix pow <small> and a very stypid bug with dummy srcs(0 equals to tmp0.x)</small...
[mesa.git] / src / mesa / main / execmem.c
index 89deaafad3aa11cba3aa35ce87d1237bf6a6565f..1655fd66e6e8f668876d541f75b4280c7d65239c 100644 (file)
@@ -52,7 +52,7 @@
 
 _glthread_DECLARE_STATIC_MUTEX(exec_mutex);
 
-static memHeap_t *exec_heap = NULL;
+static struct mem_block *exec_heap = NULL;
 static unsigned char *exec_mem = NULL;
 
 
@@ -72,7 +72,7 @@ init_heap(void)
 void *
 _mesa_exec_malloc(GLuint size)
 {
-   PMemBlock block = NULL;
+   struct mem_block *block = NULL;
    void *addr = NULL;
 
    _glthread_LOCK_MUTEX(exec_mutex);
@@ -99,7 +99,7 @@ _mesa_exec_free(void *addr)
    _glthread_LOCK_MUTEX(exec_mutex);
 
    if (exec_heap) {
-      PMemBlock block = mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem);
+      struct mem_block *block = mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem);
    
       if (block)
         mmFreeMem(block);