aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/execmem.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-12-03 13:51:55 -0800
committerAlejandro Piñeiro <[email protected]>2019-12-05 21:07:09 +0100
commitef893db468c60e1ab57ba5fa1677b3d34f09833e (patch)
tree5afa2f97dab0b2cd2aa3b6076d6a4fcf163da27a /src/mesa/main/execmem.c
parent3097efe5f0a70a38f5e7fbd34add8649282139bf (diff)
main: Change u_mmAllocMem align2 from bytes (old API) to bits (new API)
The main and Gallium implementations were recently merged, and the align2 parameter in the Gallium one is in bits. execmem.c expected bytes still. This led to every call here asserting. Fixes: b6fd679a9e("mesa/main/util: moving gallium u_mm to util, remove main/mm") Reviewed-by: Alejandro Piñeiro <[email protected]> Tested-by: Clayton Craft <[email protected]>
Diffstat (limited to 'src/mesa/main/execmem.c')
-rw-r--r--src/mesa/main/execmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/execmem.c b/src/mesa/main/execmem.c
index 8c7325bebf3..35d4574ba2b 100644
--- a/src/mesa/main/execmem.c
+++ b/src/mesa/main/execmem.c
@@ -101,7 +101,7 @@ _mesa_exec_malloc(GLuint size)
if (exec_heap) {
size = (size + 31) & ~31;
- block = u_mmAllocMem( exec_heap, size, 32, 0 );
+ block = u_mmAllocMem(exec_heap, size, 5, 0);
}
if (block)