From: Thomas H.P. Andersen Date: Tue, 11 Jul 2023 16:22:22 +0000 (+0200) Subject: tgsi: remove unused tgsi_shader_info.array_max X-Git-Tag: upstream/23.3.3~5451 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64ce4669a3c562e93f3d4ec73ff5014e95469e87;p=platform%2Fupstream%2Fmesa.git tgsi: remove unused tgsi_shader_info.array_max Reviewed-by: Charmaine Lee Reviewed-by: Christian Gmeiner Part-of: --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index fb59975..aa471c8 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -627,7 +627,6 @@ scan_declaration(struct tgsi_shader_info *info, default: break; } - info->array_max[file] = MAX2(info->array_max[file], array_id); } for (reg = fulldecl->Range.First; reg <= fulldecl->Range.Last; reg++) { diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h index a207273..b2d3fc3 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.h +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h @@ -71,7 +71,6 @@ struct tgsi_shader_info uint8_t input_array_first[PIPE_MAX_SHADER_INPUTS]; uint8_t output_array_first[PIPE_MAX_SHADER_OUTPUTS]; - unsigned array_max[TGSI_FILE_COUNT]; /**< highest index array per register file */ unsigned immediate_count; /**< number of immediates declared */ unsigned num_instructions;