From 6992aa951d49090db6b9873f45fc461a1a171b35 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 27 Feb 2023 13:52:30 -0500 Subject: [PATCH] aux/tc: only call tc_parse_draw() when parsing renderpass info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- 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. */