util/os_file: extend os_read_file to return the file size
[mesa.git] / src / intel / vulkan / anv_device.c
index cffcecca75c679ff398e32a81b1b7944705604fe..11fb4f6c3fc43743a2820228c5e50fefe323db30 100644 (file)
@@ -308,7 +308,7 @@ anv_physical_device_free_disk_cache(struct anv_physical_device *device)
 static uint64_t
 get_available_system_memory()
 {
-   char *meminfo = os_read_file("/proc/meminfo");
+   char *meminfo = os_read_file("/proc/meminfo", NULL);
    if (!meminfo)
       return 0;