mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
intel/dev: Assert the number of slices is not zero
Fixes: c1900f5b intel: devinfo: add helper functions to fill...
CID: 1433511
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
8960903c90
commit
26f48fe010
1 changed files with 1 additions and 1 deletions
|
|
@ -1047,7 +1047,7 @@ gen_device_info_update_from_topology(struct gen_device_info *devinfo,
|
||||||
/* We expect the total number of EUs to be uniformly distributed throughout
|
/* We expect the total number of EUs to be uniformly distributed throughout
|
||||||
* the subslices.
|
* the subslices.
|
||||||
*/
|
*/
|
||||||
assert((n_eus % n_subslices) == 0);
|
assert(n_subslices && (n_eus % n_subslices) == 0);
|
||||||
devinfo->num_eu_per_subslice = n_eus / n_subslices;
|
devinfo->num_eu_per_subslice = n_eus / n_subslices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue