Mesa (main): tgsi_scan: Remove unused input_array_last/output_array_last.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu May 5 23:11:15 UTC 2022


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

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Dec 11 15:31:53 2020 -0800

tgsi_scan: Remove unused input_array_last/output_array_last.

Last use removed in "radeonsi: remove TGSI" this year.

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

---

 src/gallium/auxiliary/tgsi/tgsi_scan.c | 2 --
 src/gallium/auxiliary/tgsi/tgsi_scan.h | 2 --
 2 files changed, 4 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index 5fab72eb626..a083711d16e 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -615,12 +615,10 @@ scan_declaration(struct tgsi_shader_info *info,
       case TGSI_FILE_INPUT:
          assert(array_id < ARRAY_SIZE(info->input_array_first));
          info->input_array_first[array_id] = fulldecl->Range.First;
-         info->input_array_last[array_id] = fulldecl->Range.Last;
          break;
       case TGSI_FILE_OUTPUT:
          assert(array_id < ARRAY_SIZE(info->output_array_first));
          info->output_array_first[array_id] = fulldecl->Range.First;
-         info->output_array_last[array_id] = fulldecl->Range.Last;
          break;
       }
       info->array_max[file] = MAX2(info->array_max[file], array_id);
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h
index 076c138e4a0..a9b2014a94b 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h
@@ -72,9 +72,7 @@ struct tgsi_shader_info
    ubyte num_stream_output_components[4];
 
    ubyte input_array_first[PIPE_MAX_SHADER_INPUTS];
-   ubyte input_array_last[PIPE_MAX_SHADER_INPUTS];
    ubyte output_array_first[PIPE_MAX_SHADER_OUTPUTS];
-   ubyte output_array_last[PIPE_MAX_SHADER_OUTPUTS];
    unsigned array_max[TGSI_FILE_COUNT];  /**< highest index array per register file */
 
    uint immediate_count; /**< number of immediates declared */



More information about the mesa-commit mailing list