On Wed, May 09, 2018 at 03:08:03PM +0100, Lionel Landwerlin wrote: > It's just not possible to have a device with no subslices.
Reviewed-by: Rafael Antognolli <rafael.antogno...@intel.com> > CID: 1433511 > Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> > --- > src/intel/dev/gen_device_info.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c > index aa72d96e178..653cece6d70 100644 > --- a/src/intel/dev/gen_device_info.c > +++ b/src/intel/dev/gen_device_info.c > @@ -1034,6 +1034,7 @@ gen_device_info_update_from_topology(struct > gen_device_info *devinfo, > } > n_subslices += devinfo->num_subslices[s]; > } > + assert(n_subslices > 0); > > uint32_t eu_mask_len = > topology->eu_stride * topology->max_subslices * topology->max_slices; > -- > 2.17.0 > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev