From dc8a2c139dd408a5b6e4365ea885ddda2f893770 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 30 Jan 2019 20:49:22 -0500 Subject: [PATCH] gallium/u_threaded: always unmap const_uploader MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit radeonsi will require this. It's a no-op for drivers supporting persistent mappings. Reviewed-by: Nicolai Hähnle Tested-by: Dieter Nützel --- src/gallium/auxiliary/util/u_threaded_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index b596c32..bd2c8f5 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 = -- 2.7.4