From 4a5d3590d6da09a286b3e4364d371ada5461ca23 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 9 Mar 2023 07:37:02 -0500 Subject: [PATCH] aux/tc: don't sync for get_sample_position MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit no drivers actually use the context for this, so a sync is pointless Acked-by: Marek Olšák Part-of: --- src/gallium/auxiliary/util/u_threaded_context.c | 1 - src/gallium/auxiliary/util/u_threaded_context.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index aabb4e6..c5029c6 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -3150,7 +3150,6 @@ tc_get_sample_position(struct pipe_context *_pipe, struct threaded_context *tc = threaded_context(_pipe); struct pipe_context *pipe = tc->pipe; - tc_sync(tc); pipe->get_sample_position(pipe, sample_count, sample_index, out_value); } diff --git a/src/gallium/auxiliary/util/u_threaded_context.h b/src/gallium/auxiliary/util/u_threaded_context.h index e376d68..50462df 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.h +++ b/src/gallium/auxiliary/util/u_threaded_context.h @@ -78,6 +78,7 @@ * - transfer_map (only unsychronized buffer mappings) * - get_query_result (when threaded_query::flushed == true) * - create_stream_output_target + * - get_sample_position * * * Transfer_map rules for buffer mappings -- 2.7.4