freedreno/decode: Remove gpu_id
authorRob Clark <robdclark@chromium.org>
Thu, 21 Sep 2023 00:08:47 +0000 (17:08 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 22 Sep 2023 19:17:14 +0000 (19:17 +0000)
Now unused.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25333>

src/freedreno/decode/cffdec.h
src/freedreno/decode/cffdump.c
src/freedreno/decode/crashdec.c

index 7ef0688..635408a 100644 (file)
@@ -47,7 +47,6 @@ enum query_mode {
 struct cffdec_options {
    struct fd_dev_id dev_id;
    const struct fd_dev_info *info;
-   unsigned gpu_id;
    int draw_filter;
    int color;
    int dump_shaders;
index 6a9b2df..4aed4e1 100644 (file)
@@ -50,9 +50,7 @@
 #include "script.h"
 #include "rdutil.h"
 
-static struct cffdec_options options = {
-   .gpu_id = 220,
-};
+static struct cffdec_options options;
 
 static bool needs_wfi = false;
 static bool is_blob = false;
@@ -342,7 +340,6 @@ handle_file(const char *filename, int start, int end, int draw)
             options.info = fd_dev_info(&options.dev_id);
             if (!options.info)
                break;
-            options.gpu_id = options.info->chip * 100;
 
             cffdec_init(&options);
             got_gpu_id = 1;
@@ -356,7 +353,6 @@ handle_file(const char *filename, int start, int end, int draw)
             options.info = fd_dev_info(&options.dev_id);
             if (!options.info)
                break;
-            options.gpu_id = options.info->chip * 100;
 
             cffdec_init(&options);
             got_gpu_id = 1;
index 9ff6741..b2f97c2 100644 (file)
@@ -777,8 +777,6 @@ decode(void)
             break;
          }
 
-         options.gpu_id = options.dev_id.gpu_id;
-
          printf("Got chip_id=0x%"PRIx64"\n", options.dev_id.chip_id);
 
          cffdec_init(&options);