mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 04:40:22 +01:00
radeonsi: fix regression on gpus using the radeon winsys.
For GPUs using the radeon kernel driver, num_se was never
getting initialised.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3939
Fixes: f2977a162a ("ac: fix min/max_good_num_cu_per_sa on gfx10.3 with disabled SEs")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7954>
This commit is contained in:
parent
6df572532d
commit
7c075bae56
1 changed files with 2 additions and 0 deletions
|
|
@ -530,6 +530,8 @@ static bool do_winsys_init(struct radeon_drm_winsys *ws)
|
|||
}
|
||||
}
|
||||
|
||||
ws->info.num_se = ws->info.max_se;
|
||||
|
||||
radeon_get_drm_value(ws->fd, RADEON_INFO_MAX_SH_PER_SE, NULL,
|
||||
&ws->info.max_sa_per_se);
|
||||
if (ws->gen == DRV_SI) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue