Fix T83344: Cycles baking with progressive refine fails on GPU
This commit is contained in:
parent
601b690a24
commit
ef6d652428
Notes:
blender-bot
2023-02-14 11:07:28 +01:00
Referenced by issue #83344, Baking broken when progressive refine is enabled
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue