Module: Mesa
Branch: main
Commit: 46746980081a8737b059dfcde7a0fea469837974
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=46746980081a8737b059dfcde7a0fea469837974

Author: Erik Faye-Lund <[email protected]>
Date:   Tue Aug 17 19:41:03 2021 +0200

gallium/nir/tgsi: fixup indentation

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12440>

---

 src/gallium/auxiliary/nir/nir_to_tgsi_info.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/gallium/auxiliary/nir/nir_to_tgsi_info.c 
b/src/gallium/auxiliary/nir/nir_to_tgsi_info.c
index 24a18ec904f..79af7e5548a 100644
--- a/src/gallium/auxiliary/nir/nir_to_tgsi_info.c
+++ b/src/gallium/auxiliary/nir/nir_to_tgsi_info.c
@@ -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;
       }
    }
 

Reply via email to