gallium/nir/tgsi: fixup indentation
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 17 Aug 2021 17:41:03 +0000 (19:41 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Aug 2021 10:51:01 +0000 (10:51 +0000)
This was using mixed tabs and spaces, let's fix that before we start
modifying the code.

Fixes: 42b5cfdbd26 ("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>

src/gallium/auxiliary/nir/nir_to_tgsi_info.c

index 24a18ec..79af7e5 100644 (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;
       }
    }