mesa/glspirv: fix compilation with MSVC
authorAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 13 Aug 2018 14:47:11 +0000 (16:47 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 13 Aug 2018 16:57:18 +0000 (18:57 +0200)
From AppVeyor #8582, it seems that MSVC doesn't like uint, so this
patch replaces it with unsigned.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/main/glspirv.c

index 4fc80b721811442e3e7099e94d69c5571d8302d7..1c5b7dd17f3df1f6b9ed47475ee6fdea987d6372 100644 (file)
@@ -188,7 +188,7 @@ nir_compute_double_inputs(nir_shader *shader,
 {
    nir_foreach_variable(var, &shader->inputs) {
       if (glsl_type_is_dual_slot(glsl_without_array(var->type))) {
-         for (uint i = 0; i < glsl_count_attribute_slots(var->type, true); i++) {
+         for (unsigned i = 0; i < glsl_count_attribute_slots(var->type, true); i++) {
             uint64_t bitfield = BITFIELD64_BIT(var->data.location + i);
             shader->info.vs.double_inputs |= bitfield;
          }