anv: use os_get_available_system_memory()
authorJonathan Gray <jsg@jsg.id.au>
Thu, 5 Dec 2019 14:07:56 +0000 (01:07 +1100)
committerJonathan Gray <jsg@jsg.id.au>
Wed, 2 Sep 2020 02:15:07 +0000 (12:15 +1000)
commit5b1ed09ff023ff98fed0c78a5ea609821cb92a8c
treea14b1f3af05113e508f19495088e46a7a171c53d
parent033dcb2978c6d95d42da944b8147228d239d32f4
anv: use os_get_available_system_memory()

Replace local get_available_system_memory() function with
os_get_available_system_memory().

Fixes: b80930a6fea ("anv: add support for VK_EXT_memory_budget")
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6517>
src/intel/vulkan/anv_device.c