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>
This commit is contained in:
Erik Faye-Lund 2021-06-14 11:59:04 +02:00 committed by Marge Bot
parent a49b145e8d
commit db5f895dab
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ block_label(struct ntv_context *ctx, nir_block *block)
static void
emit_access_decorations(struct ntv_context *ctx, nir_variable *var, SpvId var_id)
{
enum gl_access_qualifier access = var->data.access;
unsigned access = var->data.access;
while (access) {
unsigned bit = u_bit_scan(&access);
switch (1 << bit) {