main: Change u_mmAllocMem align2 from bytes (old API) to bits (new API)
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 3 Dec 2019 21:51:55 +0000 (13:51 -0800)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 5 Dec 2019 20:07:09 +0000 (21:07 +0100)
commitef893db468c60e1ab57ba5fa1677b3d34f09833e
tree5afa2f97dab0b2cd2aa3b6076d6a4fcf163da27a
parent3097efe5f0a70a38f5e7fbd34add8649282139bf
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>
src/mesa/main/execmem.c