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 <apinheiro@igalia.com>
Tested-by: Clayton Craft <clayton.a.craft@intel.com>
This commit is contained in:
Kenneth Graunke 2019-12-03 13:51:55 -08:00 committed by Alejandro Piñeiro
parent 3097efe5f0
commit ef893db468

View file

@ -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)