diff --git a/src/asahi/lib/agx_nir_lower_gs.c b/src/asahi/lib/agx_nir_lower_gs.c index 06a85858ecc..d64c9125101 100644 --- a/src/asahi/lib/agx_nir_lower_gs.c +++ b/src/asahi/lib/agx_nir_lower_gs.c @@ -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; diff --git a/src/asahi/lib/agx_nir_lower_gs.h b/src/asahi/lib/agx_nir_lower_gs.h index fc901bb35ec..2747de3c254 100644 --- a/src/asahi/lib/agx_nir_lower_gs.h +++ b/src/asahi/lib/agx_nir_lower_gs.h @@ -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; };