radeonsi: remove si_shader_info::num_outputs

Acked-by: Pierre-Eric
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40556>
This commit is contained in:
Marek Olšák 2026-03-19 22:06:29 -04:00 committed by Marge Bot
parent a4396f2da6
commit c8ce9d4b48
2 changed files with 1 additions and 4 deletions

View file

@ -229,7 +229,6 @@ static void gather_io_instrinsic(const nir_shader *nir, struct si_shader_info *i
} else {
/* Outputs. */
for (unsigned i = 0; i < num_slots; i++) {
unsigned loc = driver_location + i;
unsigned slot_semantic = semantic + i;
/* Call the translation functions to validate the semantic (call assertions in them). */
@ -265,7 +264,6 @@ static void gather_io_instrinsic(const nir_shader *nir, struct si_shader_info *i
}
info->gs_writes_stream0 |= writes_stream0;
info->num_outputs = MAX2(info->num_outputs, loc + 1);
switch (nir->info.stage) {
case MESA_SHADER_TESS_CTRL:
@ -786,7 +784,7 @@ void si_nir_gather_info(struct si_screen *sscreen, struct nir_shader *nir,
sscreen->info.gfx_level <= GFX10_3 &&
(nir->info.gs.invocations * nir->info.gs.vertices_out > 256 ||
nir->info.gs.invocations * nir->info.gs.vertices_out *
(info->num_outputs * 4 + 1) > 6500 /* max dw per GS primitive */);
(nir->num_outputs * 4 + 1) > 6500 /* max dw per GS primitive */);
break;
case MESA_SHADER_VERTEX:

View file

@ -93,7 +93,6 @@ struct si_shader_info {
uint32_t options; /* bitmask of SI_PROFILE_* */
uint8_t num_inputs;
uint8_t num_outputs;
uint8_t input_semantic[PIPE_MAX_SHADER_INPUTS];
uint8_t num_vs_inputs;