asahi/gs: report whether xfb is needed

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33901>
This commit is contained in:
Alyssa Rosenzweig 2025-01-31 13:35:10 -05:00 committed by Marge Bot
parent 70835ee0c5
commit 927c95e118
2 changed files with 5 additions and 1 deletions

View file

@ -1399,6 +1399,7 @@ agx_nir_lower_gs(nir_shader *gs, bool rasterizer_discard, nir_shader **gs_count,
.count_words = gs_state.count_stride_el,
.prefix_sum = gs_state.prefix_summing,
.max_indices = gs_state.max_indices,
.xfb = gs->xfb_info != NULL,
};
return true;

View file

@ -40,7 +40,10 @@ struct agx_gs_info {
/* Per-input primitive stride of the output index buffer */
unsigned max_indices;
/* Whether a prefix sum is required on the count outputs */
/* Whether the GS includes transform feedback at a compile-time level */
bool xfb;
/* Whether a prefix sum is required on the count outputs. Implies xfb */
bool prefix_sum;
};