mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 10:08:08 +02:00
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:
parent
3097efe5f0
commit
ef893db468
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue