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:
Sergey Sharybin
2015-05-09 19:09:07 +05:00
parent 0e4ddaadd4
commit b3299bace0
2 changed files with 2 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ public:
bool need_finish_queue;
bool integrator_branched;
int2 requested_tile_size;
protected:
double last_update_time;
};

View File

@@ -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);
}