Files
mesa/src/util
Ian Romanick c12b52b856 util: Set util_cpu_caps.num_cpu_mask_bits based on total CPUs in the system
In the current code, this prevents a very unlikely corner case.  More
importantly, it should prevent the next commit from breaking the
universe.

Imagine a system with 64 CPUs configured, but first 32 CPUs are offline.
_SC_NPROCESSORS_CONF will return 32.  All of the surrounding code will
interpret this as meaning CPUs 0 through 31, but all of those CPUs are
offline.  Nothing good can happen then.

The problem cases require systems with more than 32 CPUs because
util_cpu_caps.num_cpu_mask_bits is always rounded up to a multiple of
32.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11228>
2021-06-15 20:01:53 +00:00
..
2021-05-02 20:38:28 +00:00
2020-09-25 20:09:08 +00:00
2021-05-26 18:48:04 +00:00
2020-08-31 09:14:57 +00:00
2021-06-04 19:08:57 +00:00
2020-10-27 15:33:40 -07:00
2020-12-02 10:12:27 -08:00
2020-12-01 07:11:44 +00:00
2020-08-21 18:22:21 +00:00
2020-11-10 15:37:07 +00:00
2020-11-11 06:08:15 +10:00
2021-02-22 00:30:46 +00:00
2021-05-10 15:34:07 +00:00
2021-05-10 15:34:07 +00:00
2021-02-19 11:05:38 +00:00
2020-05-13 23:36:44 +00:00
2020-05-13 23:36:44 +00:00
2020-12-01 10:04:41 +01:00