radv: remove unused vs/tes num_outputs from shader info

Supposedly used for ngg xfb, but apparently unused.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40982>
This commit is contained in:
Georg Lehmann 2026-04-15 14:12:34 +02:00 committed by Marge Bot
parent 1dd9c57233
commit 97c7e4b41f
2 changed files with 4 additions and 14 deletions

View file

@ -570,12 +570,8 @@ gather_shader_info_vs(struct radv_device *device, const nir_shader *nir,
info->esgs_itemsize = radv_compute_esgs_itemsize(pdev->info.gfx_level, info->vs.num_linked_outputs);
}
if (info->is_ngg) {
info->vs.num_outputs = nir->num_outputs;
if (info->next_stage == MESA_SHADER_FRAGMENT || info->next_stage == MESA_SHADER_NONE) {
gather_shader_info_ngg_query(device, info);
}
if (info->is_ngg && (info->next_stage == MESA_SHADER_FRAGMENT || info->next_stage == MESA_SHADER_NONE)) {
gather_shader_info_ngg_query(device, info);
}
}
@ -636,12 +632,8 @@ gather_shader_info_tes(struct radv_device *device, const nir_shader *nir, struct
info->esgs_itemsize = radv_compute_esgs_itemsize(pdev->info.gfx_level, info->tes.num_linked_outputs);
}
if (info->is_ngg) {
info->tes.num_outputs = nir->num_outputs;
if (info->next_stage == MESA_SHADER_FRAGMENT || info->next_stage == MESA_SHADER_NONE) {
gather_shader_info_ngg_query(device, info);
}
if (info->is_ngg && (info->next_stage == MESA_SHADER_FRAGMENT || info->next_stage == MESA_SHADER_NONE)) {
gather_shader_info_ngg_query(device, info);
}
}

View file

@ -124,7 +124,6 @@ struct radv_shader_info {
uint64_t tcs_inputs_via_lds;
uint32_t vb_desc_usage_mask;
uint32_t input_slot_usage_mask;
uint32_t num_outputs; /* For NGG streamout only */
uint8_t num_linked_outputs;
uint8_t num_attributes;
bool needs_draw_id : 1;
@ -151,7 +150,6 @@ struct radv_shader_info {
} gs;
struct {
uint32_t tcs_vertices_out;
uint32_t num_outputs; /* For NGG streamout only */
uint8_t num_linked_inputs; /* Number of reserved per-vertex input slots in VRAM. */
uint8_t num_linked_patch_inputs; /* Number of reserved per-patch input slots in VRAM. */
uint8_t num_linked_outputs;