Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/integrator/work_tile_scheduler.cpp
| Context not available. | |||||
| max_num_path_states_ = max_num_path_states; | max_num_path_states_ = max_num_path_states; | ||||
| } | } | ||||
| void WorkTileScheduler::reset(const BufferParams &buffer_params, int sample_start, int samples_num) | void WorkTileScheduler::reset(const BufferParams &buffer_params, | ||||
| int sample_start, | |||||
| int samples_num, | |||||
| float scrambling_distance) | |||||
| { | { | ||||
| /* Image buffer parameters. */ | /* Image buffer parameters. */ | ||||
| image_full_offset_px_.x = buffer_params.full_x; | image_full_offset_px_.x = buffer_params.full_x; | ||||
| image_full_offset_px_.y = buffer_params.full_y; | image_full_offset_px_.y = buffer_params.full_y; | ||||
| image_size_px_ = make_int2(buffer_params.width, buffer_params.height); | image_size_px_ = make_int2(buffer_params.width, buffer_params.height); | ||||
| scrambling_distance_ = scrambling_distance; | |||||
| offset_ = buffer_params.offset; | offset_ = buffer_params.offset; | ||||
| stride_ = buffer_params.stride; | stride_ = buffer_params.stride; | ||||
| Context not available. | |||||
| void WorkTileScheduler::reset_scheduler_state() | void WorkTileScheduler::reset_scheduler_state() | ||||
| { | { | ||||
| tile_size_ = tile_calculate_best_size(image_size_px_, samples_num_, max_num_path_states_); | tile_size_ = tile_calculate_best_size( | ||||
| image_size_px_, samples_num_, max_num_path_states_, scrambling_distance_); | |||||
| VLOG(3) << "Will schedule tiles of size " << tile_size_; | VLOG(3) << "Will schedule tiles of size " << tile_size_; | ||||
| Context not available. | |||||