intel/devinfo: use compatible type for ARRAY_SIZE

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10015>
This commit is contained in:
Lionel Landwerlin 2021-04-12 14:27:25 +03:00 committed by Marge Bot
parent 67619d8153
commit 718c97d525

View file

@ -392,7 +392,7 @@ intel_device_info_eu_total(const struct intel_device_info *devinfo)
{
uint32_t total = 0;
for (uint32_t i = 0; i < ARRAY_SIZE(devinfo->eu_masks); i++)
for (size_t i = 0; i < ARRAY_SIZE(devinfo->eu_masks); i++)
total += __builtin_popcount(devinfo->eu_masks[i]);
return total;