mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 12:30:09 +01:00
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:
parent
70835ee0c5
commit
927c95e118
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue