summaryrefslogtreecommitdiff
path: root/src/mesa/main/execmem.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-05-10 08:57:34 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-05-10 08:57:34 +0000
commit452be7e7ef0d9ac0205ce7b3277ad1f14558cc2c (patch)
tree404235fe76e250bc70684e06cab907722f06e3e5 /src/mesa/main/execmem.c
parent2b3aab071760c15abfbd99c070cf368d715e5173 (diff)
Use a (much!) larger executable memory heap so that the glsl x86
allocations succeed. I'm not sure this is really necessary...
Diffstat (limited to 'src/mesa/main/execmem.c')
-rw-r--r--src/mesa/main/execmem.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/main/execmem.c b/src/mesa/main/execmem.c
index 7d498a8279..3f4c75939d 100644
--- a/src/mesa/main/execmem.c
+++ b/src/mesa/main/execmem.c
@@ -47,7 +47,7 @@
#include <sys/mman.h>
#include "mm.h"
-#define EXEC_HEAP_SIZE (128*1024)
+#define EXEC_HEAP_SIZE (10*1024*1024)
_glthread_DECLARE_STATIC_MUTEX(exec_mutex);
@@ -85,7 +85,11 @@ _mesa_exec_malloc(GLuint size)
if (block)
addr = exec_mem + block->ofs;
-
+ else {
+ _mesa_printf("%s failed\n", __FUNCTION__);
+ exit(1);
+ }
+
_glthread_UNLOCK_MUTEX(exec_mutex);
return addr;