intel/devinfo: add a helper to check for slice availability
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14510>
This commit is contained in:
committed by
Marge Bot
parent
1c5b206366
commit
5d5a1b660b
@@ -385,6 +385,14 @@ struct intel_device_info
|
||||
|
||||
#endif
|
||||
|
||||
static inline bool
|
||||
intel_device_info_slice_available(const struct intel_device_info *devinfo,
|
||||
int slice)
|
||||
{
|
||||
assert(slice < INTEL_DEVICE_MAX_SLICES);
|
||||
return (devinfo->slice_masks & (1U << slice)) != 0;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
intel_device_info_subslice_available(const struct intel_device_info *devinfo,
|
||||
int slice, int subslice)
|
||||
|
||||
Reference in New Issue
Block a user