From 728aa749ea7ff7212c2c7bc6ad6844dd2fa50436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 11 Feb 2021 18:01:54 -0500 Subject: [PATCH] gallium/u_threaded: don't sync in create_stream_output_target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Manhattan needs this. radeonsi can handle it since https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9028/diffs?commit_id=33ac9dec91d07ef353e110ac376842d84ec539b4. Reviewed-by: Zoltán Böszörményi Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/auxiliary/util/u_threaded_context.c | 1 - src/gallium/auxiliary/util/u_threaded_context.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index 148f3a16ae2..139607b276b 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -1344,7 +1344,6 @@ tc_create_stream_output_target(struct pipe_context *_pipe, struct threaded_resource *tres = threaded_resource(res); struct pipe_stream_output_target *view; - tc_sync(threaded_context(_pipe)); util_range_add(&tres->b, &tres->valid_buffer_range, buffer_offset, buffer_offset + buffer_size); diff --git a/src/gallium/auxiliary/util/u_threaded_context.h b/src/gallium/auxiliary/util/u_threaded_context.h index 44a28f95120..3982fb6dab9 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.h +++ b/src/gallium/auxiliary/util/u_threaded_context.h @@ -77,8 +77,6 @@ * - stream_output_target_destroy * - transfer_map (only unsychronized buffer mappings) * - get_query_result (when threaded_query::flushed == true) - * - * Create calls causing a sync that can't be async due to driver limitations: * - create_stream_output_target * *