mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
winsys/radeon: use util_get_cpu_caps()-helper
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36621>
This commit is contained in:
parent
91232524bf
commit
590ad7fd42
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ static bool do_winsys_init(struct radeon_drm_winsys *ws)
|
|||
&ws->info.max_gpu_freq_mhz);
|
||||
ws->info.max_gpu_freq_mhz /= 1000;
|
||||
|
||||
ws->num_cpus = sysconf(_SC_NPROCESSORS_ONLN);
|
||||
ws->num_cpus = util_get_cpu_caps()->nr_cpus;
|
||||
|
||||
/* Generation-specific queries. */
|
||||
if (ws->gen == DRV_R300) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue