From: Marek Olšák Date: Thu, 11 Feb 2021 23:01:54 +0000 (-0500) Subject: gallium/u_threaded: don't sync in create_stream_output_target X-Git-Tag: upstream/21.2.3~6754 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=728aa749ea7ff7212c2c7bc6ad6844dd2fa50436;p=platform%2Fupstream%2Fmesa.git gallium/u_threaded: don't sync in create_stream_output_target 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: --- diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index 148f3a1..139607b 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 44a28f9..3982fb6 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 * *