intel/dev: fix ppipe_mask computation

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: e86ce98c6a ("intel/devinfo: deal with i915 topology query change")
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14608>
This commit is contained in:
Lionel Landwerlin 2022-01-19 11:03:39 +02:00 committed by Marge Bot
parent 9e839620da
commit 2c875e6ad7
1 changed files with 2 additions and 1 deletions

View File

@ -1118,7 +1118,8 @@ update_pixel_pipes(struct intel_device_info *devinfo)
const unsigned offset = p * ppipe_bits;
const unsigned subslice_idx = offset /
devinfo->max_subslices_per_slice * devinfo->subslice_slice_stride;
const unsigned ppipe_mask = BITFIELD_RANGE(offset % 8, ppipe_bits);
const unsigned ppipe_mask =
BITFIELD_RANGE(offset % devinfo->max_subslices_per_slice, ppipe_bits);
if (subslice_idx < ARRAY_SIZE(devinfo->subslice_masks))
devinfo->ppipe_subslices[p] =