zink: use correct type for u_bit_scan
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 14 Jun 2021 09:59:04 +0000 (11:59 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 15 Jun 2021 14:49:25 +0000 (14:49 +0000)
commitdb5f895dab8c0d0d1cb192c75a3fff1ac13d8e7c
tree2ab1f92cf8cdd3f6518a033f4b0022fd9e8f3352
parenta49b145e8d59a7cdd6a16cc469c055f6746013f8
zink: use correct type for u_bit_scan

Since we're going to iterate over each bit of this variable using
u_bit_scan, we should make sure we use an unsigned int for the variable.

While this works on GCC, it's not guaranteed to work, and produces a
warning on MSVC.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11358>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c