From: Marek Olšák Date: Thu, 31 Jan 2019 01:49:22 +0000 (-0500) Subject: gallium/u_threaded: always unmap const_uploader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc8a2c139dd408a5b6e4365ea885ddda2f893770;p=mesa.git gallium/u_threaded: always unmap const_uploader radeonsi will require this. It's a no-op for drivers supporting persistent mappings. Reviewed-by: Nicolai Hähnle Tested-by: Dieter Nützel --- diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index b596c322918..bd2c8f57a10 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -676,6 +676,7 @@ tc_set_constant_buffer(struct pipe_context *_pipe, if (cb && cb->user_buffer) { u_upload_data(tc->base.const_uploader, 0, cb->buffer_size, 64, cb->user_buffer, &offset, &buffer); + u_upload_unmap(tc->base.const_uploader); } struct tc_constant_buffer *p =