Module: Mesa Branch: main Commit: 6992aa951d49090db6b9873f45fc461a1a171b35 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6992aa951d49090db6b9873f45fc461a1a171b35
Author: Mike Blumenkrantz <[email protected]> Date: Mon Feb 27 13:52:30 2023 -0500 aux/tc: only call tc_parse_draw() when parsing renderpass info Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21533> --- src/gallium/auxiliary/util/u_threaded_context.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index d323a7bc62a..f80977dc8af 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -3679,7 +3679,8 @@ tc_draw_vbo(struct pipe_context *_pipe, const struct pipe_draw_info *info, struct threaded_context *tc = threaded_context(_pipe); unsigned index_size = info->index_size; bool has_user_indices = info->has_user_indices; - tc_parse_draw(tc); + if (tc->options.parse_renderpass_info) + tc_parse_draw(tc); if (unlikely(indirect)) { assert(!has_user_indices); @@ -3999,7 +4000,8 @@ tc_draw_vertex_state(struct pipe_context *_pipe, unsigned num_draws) { struct threaded_context *tc = threaded_context(_pipe); - tc_parse_draw(tc); + if (tc->options.parse_renderpass_info) + tc_parse_draw(tc); if (num_draws == 1) { /* Single draw. */
