Module: Mesa Branch: main Commit: 718c97d525391475313cdcb3b6b7a68d345a19a7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=718c97d525391475313cdcb3b6b7a68d345a19a7
Author: Lionel Landwerlin <[email protected]> Date: Mon Apr 12 14:27:25 2021 +0300 intel/devinfo: use compatible type for ARRAY_SIZE Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10015> --- src/intel/dev/intel_device_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/dev/intel_device_info.h b/src/intel/dev/intel_device_info.h index 499bf2a9ad4..d5fc452e616 100644 --- a/src/intel/dev/intel_device_info.h +++ b/src/intel/dev/intel_device_info.h @@ -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;
