summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/auxiliary/rtasm
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-08-26 16:59:42 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-08-26 16:59:42 +0000
commit81ece42815e80818f160cdd85fab57d65b56ad15 (patch)
tree1059ff094da1aa50334115952fcb1cfcbda3acc6 /lib/mesa/src/gallium/auxiliary/rtasm
parentb0244145d5bb49623d58f6b5cab8143ada692b60 (diff)
Revert to Mesa 13.0.6 to hopefully address rendering issues a handful of
people have reported with xpdf/fvwm on ivy bridge with modesetting driver.
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/rtasm')
-rw-r--r--lib/mesa/src/gallium/auxiliary/rtasm/rtasm_execmem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/rtasm/rtasm_execmem.c b/lib/mesa/src/gallium/auxiliary/rtasm/rtasm_execmem.c
index ca84b594b..edbb45970 100644
--- a/lib/mesa/src/gallium/auxiliary/rtasm/rtasm_execmem.c
+++ b/lib/mesa/src/gallium/auxiliary/rtasm/rtasm_execmem.c
@@ -63,7 +63,7 @@
#define EXEC_HEAP_SIZE (10*1024*1024)
-static mtx_t exec_mutex = _MTX_INITIALIZER_NP;
+pipe_static_mutex(exec_mutex);
static struct mem_block *exec_heap = NULL;
static unsigned char *exec_mem = NULL;
@@ -102,7 +102,7 @@ rtasm_exec_malloc(size_t size)
struct mem_block *block = NULL;
void *addr = NULL;
- mtx_lock(&exec_mutex);
+ pipe_mutex_lock(exec_mutex);
if (!init_heap())
goto bail;
@@ -118,7 +118,7 @@ rtasm_exec_malloc(size_t size)
debug_printf("rtasm_exec_malloc failed\n");
bail:
- mtx_unlock(&exec_mutex);
+ pipe_mutex_unlock(exec_mutex);
return addr;
}
@@ -127,7 +127,7 @@ bail:
void
rtasm_exec_free(void *addr)
{
- mtx_lock(&exec_mutex);
+ pipe_mutex_lock(exec_mutex);
if (exec_heap) {
struct mem_block *block = u_mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem);
@@ -136,7 +136,7 @@ rtasm_exec_free(void *addr)
u_mmFreeMem(block);
}
- mtx_unlock(&exec_mutex);
+ pipe_mutex_unlock(exec_mutex);
}