diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-01-25 16:26:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-01-25 16:27:01 +0300 |
commit | ef6d6524280d27d5e665658b538ed226bc67c65c (patch) | |
tree | 163a081c04f681c4926742c96eef3b0d15fc4bb5 | |
parent | 601b690a241b66e15da7a3906277d5f01b95785e (diff) |
Fix T83344: Cycles baking with progressive refine fails on GPU
-rw-r--r-- | intern/cycles/render/session.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/intern/cycles/render/session.cpp b/intern/cycles/render/session.cpp index 70b140ee9c6..7a30ecb24f7 100644 --- a/intern/cycles/render/session.cpp +++ b/intern/cycles/render/session.cpp @@ -560,10 +560,12 @@ bool Session::acquire_tile(RenderTile &rtile, Device *tile_device, uint tile_typ if (read_bake_tile_cb) { /* This will read any passes needed as input for baking. */ if (tile_manager.state.sample == tile_manager.range_start_sample) { - thread_scoped_lock tile_lock(tile_mutex); - read_bake_tile_cb(rtile); + { + thread_scoped_lock tile_lock(tile_mutex); + read_bake_tile_cb(rtile); + } + rtile.buffers->buffer.copy_to_device(); } - rtile.buffers->buffer.copy_to_device(); } else { /* This will tag tile as IN PROGRESS in blender-side render pipeline, |