summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorAlejandro Piñeiro <[email protected]>2018-08-13 16:47:11 +0200
committerAlejandro Piñeiro <[email protected]>2018-08-13 18:57:18 +0200
commit668ab8aeb1767af1341edff701f28a588b08e0a9 (patch)
treea567059ca559d071cacadf7f29e36ffcfde9619c /src/mesa/main
parentf976d22759f4c9b7f4c811ffd21ad970a0fb4352 (diff)
mesa/glspirv: fix compilation with MSVC
From AppVeyor #8582, it seems that MSVC doesn't like uint, so this patch replaces it with unsigned. Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/glspirv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/glspirv.c b/src/mesa/main/glspirv.c
index 4fc80b72181..1c5b7dd17f3 100644
--- a/src/mesa/main/glspirv.c
+++ b/src/mesa/main/glspirv.c
@@ -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;
}