[Mesa-dev] [PATCH] intel/dev: Assert the number of slices is not zero
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Thu Apr 5 08:11:04 UTC 2018
Rb
On 05/04/18 08:43, Topi Pohjolainen wrote:
> Fixes: c1900f5b intel: devinfo: add helper functions to fill...
> CID: 1433511
> CC: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
> src/intel/dev/gen_device_info.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c
> index f7cb94f..dfeab6e 100644
> --- a/src/intel/dev/gen_device_info.c
> +++ b/src/intel/dev/gen_device_info.c
> @@ -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
> * 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;
> }
>
More information about the mesa-dev
mailing list