<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
Reviewed-by: Neha Bhende<bhenden@vmware.com>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Brian Paul <brianp@vmware.com><br>
<b>Sent:</b> Thursday, March 29, 2018 9:02:45 PM<br>
<b>To:</b> mesa-dev@lists.freedesktop.org<br>
<b>Cc:</b> Neha Bhende; Charmaine Lee<br>
<b>Subject:</b> [PATCH] nir: s/uint/unsigned/ to fix MSVC/MinGW build</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">---<br>
 src/compiler/glsl/glsl_to_nir.cpp  | 2 +-<br>
 src/compiler/nir/nir_gather_info.c | 2 +-<br>
 2 files changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp<br>
index c4a6d52..dbb58d8 100644<br>
--- a/src/compiler/glsl/glsl_to_nir.cpp<br>
+++ b/src/compiler/glsl/glsl_to_nir.cpp<br>
@@ -369,7 +369,7 @@ nir_visitor::visit(ir_variable *ir)<br>
       /* Mark all the locations that require two slots */<br>
       if (shader->info.stage == MESA_SHADER_VERTEX &&<br>
           glsl_type_is_dual_slot(glsl_without_array(var->type))) {<br>
-         for (uint i = 0; i < glsl_count_attribute_slots(var->type, true); i++) {<br>
+         for (unsigned i = 0; i < glsl_count_attribute_slots(var->type, true); i++) {<br>
             uint64_t bitfield = BITFIELD64_BIT(var->data.location + i);<br>
             shader->info.vs.double_inputs |= bitfield;<br>
          }<br>
diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c<br>
index 743f968..5530009 100644<br>
--- a/src/compiler/nir/nir_gather_info.c<br>
+++ b/src/compiler/nir/nir_gather_info.c<br>
@@ -250,7 +250,7 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader)<br>
          if (shader->info.stage == MESA_SHADER_VERTEX &&<br>
              var->data.mode == nir_var_shader_in &&<br>
              glsl_type_is_dual_slot(glsl_without_array(var->type))) {<br>
-            for (uint i = 0; i < glsl_count_attribute_slots(var->type, false); i++) {<br>
+            for (unsigned i = 0; i < glsl_count_attribute_slots(var->type, false); i++) {<br>
                int idx = var->data.location + i;<br>
                shader->info.vs.double_inputs |= BITFIELD64_BIT(idx);<br>
             }<br>
-- <br>
2.7.4<br>
<br>
</div>
</span></font></div>
</body>
</html>