Mesa (main): ac/gpu_info: remove tabs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 27 05:35:30 UTC 2022


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

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun Jul  3 15:10:15 2022 -0400

ac/gpu_info: remove tabs

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17411>

---

 src/amd/common/ac_gpu_info.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index e05b728b1da..31a74a9749f 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -1256,12 +1256,12 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
 
    const char *ib_filename = debug_get_option("AMD_PARSE_IB", NULL);
    if (ib_filename) {
-	   FILE *f = fopen(ib_filename, "r");
-	   if (f) {
-		   fseek(f, 0, SEEK_END);
+      FILE *f = fopen(ib_filename, "r");
+      if (f) {
+         fseek(f, 0, SEEK_END);
          size_t size = ftell(f);
-		   uint32_t *ib = (uint32_t *)malloc(size);
-		   fseek(f, 0, SEEK_SET);
+         uint32_t *ib = (uint32_t *)malloc(size);
+         fseek(f, 0, SEEK_SET);
          size_t n_read = fread(ib, 1, size, f);
          fclose(f);
 
@@ -1271,9 +1271,9 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
          }
 
          ac_parse_ib(stdout, ib, size / 4, NULL, 0, "IB", info->gfx_level, NULL, NULL);
-		   free(ib);
-		   exit(0);
-	   }
+         free(ib);
+         exit(0);
+      }
    }
    return true;
 }



More information about the mesa-commit mailing list