mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
1c5b206366
commit
5d5a1b660b
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue