anv: use os_get_total_physical_memory()
authorJonathan Gray <jsg@jsg.id.au>
Sat, 30 Nov 2019 06:36:01 +0000 (17:36 +1100)
committerJonathan Gray <jsg@jsg.id.au>
Wed, 2 Sep 2020 01:40:25 +0000 (11:40 +1000)
commit81b163fb73ae73709d257badf4f5aaf3b63fca4a
tree94a5515adb0e331242df790f1b3e5f5694270fc2
parent0369dd907778d8636e2b074717846bb658d76d90
anv: use os_get_total_physical_memory()

Replace non-portable sysinfo() use with Mesa's
os_get_total_physical_memory()

Fixes: 060a6434eca ("anv: Advertise larger heap sizes")
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