util/os_misc: add os_get_available_system_memory()
authorJonathan Gray <jsg@jsg.id.au>
Thu, 5 Dec 2019 14:01:29 +0000 (01:01 +1100)
committerJonathan Gray <jsg@jsg.id.au>
Wed, 2 Sep 2020 02:14:56 +0000 (12:14 +1000)
commit033dcb2978c6d95d42da944b8147228d239d32f4
tree8f7e68001683333849e3bface43474a5966eedba
parent81b163fb73ae73709d257badf4f5aaf3b63fca4a
util/os_misc: add os_get_available_system_memory()

Add os_get_available_system_memory() derived from
src/intel/vulkan/anv_device.c 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/util/os_misc.c
src/util/os_misc.h