util/os_misc: os_get_available_system_memory() for OpenBSD
authorJonathan Gray <jsg@jsg.id.au>
Thu, 5 Dec 2019 14:21:07 +0000 (01:21 +1100)
committerJonathan Gray <jsg@jsg.id.au>
Wed, 2 Sep 2020 02:15:07 +0000 (12:15 +1000)
commitb30bd6fe5f254d895c1dec780f24518b3e880ed4
tree885d45babae4cb6d9bde01337b8e98f8c04f13c4
parent5b1ed09ff023ff98fed0c78a5ea609821cb92a8c
util/os_misc: os_get_available_system_memory() for OpenBSD

Return the smallest value of available non-kernel physical memory and
the static per process data size limit as the amount of available
system memory on OpenBSD.

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