gallium/nir/tgsi: fixup indentation

This was using mixed tabs and spaces, let's fix that before we start
modifying the code.

Fixes: 42b5cfdbd2 ("gallivm/nir: fix vulkan vertex inputs")
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12440>
(cherry picked from commit 4674698008)
This commit is contained in:
Erik Faye-Lund 2021-08-17 19:41:03 +02:00 committed by Dylan Baker
parent 1a3180d595
commit 33ace70ae1
2 changed files with 6 additions and 6 deletions

View file

@ -76,7 +76,7 @@
"description": "gallium/nir/tgsi: fixup indentation",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "42b5cfdbd26cf1540f12d8193dd70d7bd01a9ccc"
},

View file

@ -581,11 +581,11 @@ void nir_tgsi_scan_shader(const struct nir_shader *nir,
} else {
int max = -1;
nir_foreach_shader_in_variable(var, nir) {
int slots = glsl_count_attribute_slots(var->type, false);
int tmax = var->data.driver_location + slots - 1;
if (tmax > max)
max = tmax;
info->file_max[TGSI_FILE_INPUT] = max;
int slots = glsl_count_attribute_slots(var->type, false);
int tmax = var->data.driver_location + slots - 1;
if (tmax > max)
max = tmax;
info->file_max[TGSI_FILE_INPUT] = max;
}
}