[Intel-gfx] [PATCH 6/9] drm/i915: Add function to determine if a slice has a subslice
Chris Wilson
chris at chris-wilson.co.uk
Wed Aug 7 22:09:28 UTC 2019
Quoting Stuart Summers (2019-08-07 17:58:29)
> Add a new function to determine whether a particular slice
> has a given subslice.
> +static inline bool
> +intel_sseu_has_subslice(const struct sseu_dev_info *sseu, int slice,
> + int subslice)
> +{
> + u8 mask = sseu->subslice_mask[slice * sseu->ss_stride +
> + subslice / BITS_PER_BYTE];
> +
> + return mask & BIT(subslice % BITS_PER_BYTE);
One might ask why haven't we switched to bitmap.h by this point?
-Chris
More information about the Intel-gfx
mailing list