radv: ALWAYS_INLINE radv_is_streamout_enabled()
v2 by Timur Kristóf: - Use ALWAYS_INLINE instead of just inline. Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18807>
This commit is contained in:
committed by
Marge Bot
parent
051594fb7f
commit
a54d996463
@@ -9431,16 +9431,6 @@ radv_CmdBindTransformFeedbackBuffersEXT(VkCommandBuffer commandBuffer, uint32_t
|
||||
cmd_buffer->state.dirty |= RADV_CMD_DIRTY_STREAMOUT_BUFFER;
|
||||
}
|
||||
|
||||
bool
|
||||
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.prims_gen_query_enabled) &&
|
||||
!cmd_buffer->state.suspend_streamout;
|
||||
}
|
||||
|
||||
void
|
||||
radv_emit_streamout_enable(struct radv_cmd_buffer *cmd_buffer)
|
||||
{
|
||||
|
||||
@@ -1664,7 +1664,6 @@ struct radv_image_view;
|
||||
|
||||
bool radv_cmd_buffer_uses_mec(struct radv_cmd_buffer *cmd_buffer);
|
||||
|
||||
bool radv_is_streamout_enabled(struct radv_cmd_buffer *cmd_buffer);
|
||||
void radv_emit_streamout_enable(struct radv_cmd_buffer *cmd_buffer);
|
||||
|
||||
void si_emit_graphics(struct radv_device *device, struct radeon_cmdbuf *cs);
|
||||
@@ -3040,6 +3039,16 @@ si_translate_blend_logic_op(VkLogicOp op)
|
||||
}
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static bool
|
||||
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.prims_gen_query_enabled) &&
|
||||
!cmd_buffer->state.suspend_streamout;
|
||||
}
|
||||
|
||||
/*
|
||||
* Queue helper to get ring.
|
||||
* placed here as it needs queue + device structs.
|
||||
|
||||
Reference in New Issue
Block a user