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:
parent
a49b145e8d
commit
db5f895dab
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue