Files
mesa/src/util
Ian Romanick 59ca535576 util: Use maximum number of CPUs for determining cache topology
This prevents problems when some CPUs are offline.  In a four CPU
system, if CPUs 1 and 2 are offline, the cache topology code would
only examine CPUs 0 and 1... giving incorrect information.

The types are changed to int16_t so that the offset of num_L3_caches
does not change.  This triggered a STATIC_ASSERT failure:

STATIC_ASSERT(offsetof(struct util_cpu_caps_t, num_L3_caches) == 5 * sizeof(uint32_t));

I'm assuming there's some assembly code or something that depends on
this offset, and I don't feel like messing with it.

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
..
2019-08-08 22:02:54 +01:00
2018-10-10 13:13:12 -05:00
2021-05-02 20:38:28 +00:00
2019-09-19 19:56:22 +00:00
2020-09-25 20:09:08 +00:00
2019-03-11 13:13:52 -07:00
2019-03-11 13:13:52 -07:00
2019-08-02 18:38:52 +01: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
2019-03-14 22:41:08 +00: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