forked from bartvdbraak/blender
Cycles: Pass requested tile size to the device via device task
This is currently unused but crucial for things like calculating amount of device memory required to deal with the tasks. Maybe not really best place to store it, but consider it good enough for now.
This commit is contained in:
parent
0e4ddaadd4
commit
b3299bace0
@ -65,6 +65,7 @@ public:
|
||||
|
||||
bool need_finish_queue;
|
||||
bool integrator_branched;
|
||||
int2 requested_tile_size;
|
||||
protected:
|
||||
double last_update_time;
|
||||
};
|
||||
|
@ -859,6 +859,7 @@ void Session::path_trace()
|
||||
task.update_progress_sample = function_bind(&Session::update_progress_sample, this);
|
||||
task.need_finish_queue = params.progressive_refine;
|
||||
task.integrator_branched = scene->integrator->method == Integrator::BRANCHED_PATH;
|
||||
task.requested_tile_size = params.tile_size;
|
||||
|
||||
device->task_add(task);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user