diff options
author | Marek Olšák <[email protected]> | 2019-01-30 20:49:22 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-02-20 21:04:29 -0500 |
commit | dc8a2c139dd408a5b6e4365ea885ddda2f893770 (patch) | |
tree | 1f9a16a5d7da4a44da04e7236f4de38c464a1689 /src | |
parent | 8ef6f68fa5f0e1e91ff88706e73a8c62463dcf69 (diff) |
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 <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_threaded_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 = |