ir3: fix comparison of different signedness build issue

Addresses:
../src/freedreno/ir3/ir3_shader.h: In function 'void ir3_link_add(ir3_shader_linkage*, uint8_t, uint8_t, uint8_t, uint8_t)':
../src/freedreno/ir3/ir3_shader.h:1326:16: error: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Werror=sign-compare]
 1326 |       assert(i < ARRAY_SIZE(l->var));

Signed-off-by: Karmjit Mahil <karmjit.mahil@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38104>
This commit is contained in:
Karmjit Mahil 2025-10-28 09:47:48 +00:00 committed by Marge Bot
parent 79e4323cf0
commit cf49571c9e

View file

@ -1322,7 +1322,7 @@ ir3_link_add(struct ir3_shader_linkage *l, uint8_t slot, uint8_t regid_,
l->max_loc = MAX2(l->max_loc, loc + util_last_bit(compmask));
if (regid_ != regid(63, 0)) {
int i = l->cnt++;
const unsigned i = l->cnt++;
assert(i < ARRAY_SIZE(l->var));
l->var[i].slot = slot;