mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
radv: move suspend_streamout to radv_streamout_state
And rename it to suspended. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41152>
This commit is contained in:
parent
b2aa92b523
commit
02ec87672b
2 changed files with 6 additions and 6 deletions
|
|
@ -40,7 +40,7 @@ radv_suspend_queries(struct radv_meta_saved_state *state, struct radv_cmd_buffer
|
|||
|
||||
/* Primitives generated queries (legacy). */
|
||||
if (cmd_buffer->state.active_prims_gen_queries) {
|
||||
cmd_buffer->state.suspend_streamout = true;
|
||||
cmd_buffer->state.streamout.suspended = true;
|
||||
cmd_buffer->state.dirty |= RADV_CMD_DIRTY_STREAMOUT_ENABLE;
|
||||
}
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ radv_resume_queries(const struct radv_meta_saved_state *state, struct radv_cmd_b
|
|||
|
||||
/* Primitives generated queries (legacy). */
|
||||
if (cmd_buffer->state.active_prims_gen_queries) {
|
||||
cmd_buffer->state.suspend_streamout = false;
|
||||
cmd_buffer->state.streamout.suspended = false;
|
||||
cmd_buffer->state.dirty |= RADV_CMD_DIRTY_STREAMOUT_ENABLE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -191,6 +191,9 @@ struct radv_streamout_state {
|
|||
|
||||
/* VA of the streamout state (GFX12+). */
|
||||
uint64_t state_va;
|
||||
|
||||
/* Whether streamout is suspended for internal driver operations. */
|
||||
bool suspended;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -430,9 +433,6 @@ struct radv_cmd_state {
|
|||
|
||||
struct radv_shader_part *ps_epilog;
|
||||
|
||||
/* Whether to suspend streamout for internal driver operations. */
|
||||
bool suspend_streamout;
|
||||
|
||||
struct radv_ia_multi_vgt_param_helpers ia_multi_vgt_param;
|
||||
|
||||
/* Tessellation info when patch control points is dynamic. */
|
||||
|
|
@ -633,7 +633,7 @@ radv_is_streamout_enabled(struct radv_cmd_buffer *cmd_buffer)
|
|||
struct radv_streamout_state *so = &cmd_buffer->state.streamout;
|
||||
|
||||
/* Streamout must be enabled for the PRIMITIVES_GENERATED query to work. */
|
||||
return (so->streamout_enabled || cmd_buffer->state.active_prims_gen_queries) && !cmd_buffer->state.suspend_streamout;
|
||||
return (so->streamout_enabled || cmd_buffer->state.active_prims_gen_queries) && !so->suspended;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static unsigned
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue