mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 18:58:10 +02:00
Use a (much!) larger executable memory heap so that the glsl x86
allocations succeed. I'm not sure this is really necessary...
This commit is contained in:
parent
2b3aab0717
commit
452be7e7ef
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue