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 <apinheiro@igalia.com>
Tested-by: Clayton Craft <clayton.a.craft@intel.com>
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)